mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
arch: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
9695659620
commit
e24621d545
@@ -189,7 +189,7 @@ void up_timer_initialize(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
tmrerr("ERROR: bm3803_oneshot_initialize failed\n");
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCHED_TICKLESS_LIMIT_MAX_SLEEP
|
||||
@@ -199,7 +199,7 @@ void up_timer_initialize(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
tmrerr("ERROR: bm3803_oneshot_max_delay failed\n");
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
|
||||
/* Convert this to configured clock ticks for use by the OS timer logic */
|
||||
@@ -223,7 +223,7 @@ void up_timer_initialize(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
tmrerr("ERROR: bm3803_freerun_initialize failed\n");
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user