boards: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
939b990a9c
commit
83442aa70c
@ -115,7 +115,7 @@ void timer_handler(void)
|
||||
ret = NRF52_TIM_CHECKINT(g_highpri.dev, NRF52_TIM_CC0);
|
||||
if (ret != 1)
|
||||
{
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
|
||||
/* Increment the count associated with the current basepri */
|
||||
|
@ -337,7 +337,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
|
||||
default:
|
||||
{
|
||||
mtrerr("board_foc_trace type=%d not supported!\n", type);
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -327,7 +327,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
|
||||
default:
|
||||
{
|
||||
mtrerr("board_foc_trace type=%d not supported!\n", type);
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
|
||||
default:
|
||||
{
|
||||
mtrerr("board_foc_trace type=%d not supported!\n", type);
|
||||
DEBUGASSERT(0);
|
||||
DEBUGPANIC();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user