misc: Replace assert include and calls by sys/__assert.h equivalent
Replace all calls to the assert macro that comes from libc by calls to __ASSERT_NO_MSG(). This is usefull as the former might be different depending on the libc used and the later can be customized to reduce flash footprint. Signed-off-by: Xavier Chapron <xavier.chapron@stimio.fr>
This commit is contained in:
parent
25e19f89f1
commit
824f423e54
35 changed files with 83 additions and 93 deletions
|
@ -258,7 +258,7 @@ static int pwm_led_esp32_timer_set(int speed_mode, int timer,
|
|||
int tick_sel = PWM_LED_ESP32_APB_CLK_FREQ;
|
||||
uint32_t precision = (0x1 << bit_num);
|
||||
|
||||
assert(frequency > 0);
|
||||
__ASSERT_NO_MSG(frequency > 0);
|
||||
|
||||
/* This expression comes from ESP32 Espressif's Technical Reference
|
||||
* Manual chapter 13.2.2 Timers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue