boards: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei
2022-07-13 17:47:26 -03:00
committed by Xiang Xiao
parent 939b990a9c
commit 83442aa70c
4 changed files with 4 additions and 4 deletions
@@ -115,7 +115,7 @@ void timer_handler(void)
ret = NRF52_TIM_CHECKINT(g_highpri.dev, NRF52_TIM_CC0); ret = NRF52_TIM_CHECKINT(g_highpri.dev, NRF52_TIM_CC0);
if (ret != 1) if (ret != 1)
{ {
DEBUGASSERT(0); DEBUGPANIC();
} }
/* Increment the count associated with the current basepri */ /* Increment the count associated with the current basepri */
+1 -1
View File
@@ -337,7 +337,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
default: default:
{ {
mtrerr("board_foc_trace type=%d not supported!\n", type); mtrerr("board_foc_trace type=%d not supported!\n", type);
DEBUGASSERT(0); DEBUGPANIC();
} }
} }
} }
+1 -1
View File
@@ -327,7 +327,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
default: default:
{ {
mtrerr("board_foc_trace type=%d not supported!\n", type); mtrerr("board_foc_trace type=%d not supported!\n", type);
DEBUGASSERT(0); DEBUGPANIC();
} }
} }
} }
+1 -1
View File
@@ -335,7 +335,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state)
default: default:
{ {
mtrerr("board_foc_trace type=%d not supported!\n", type); mtrerr("board_foc_trace type=%d not supported!\n", type);
DEBUGASSERT(0); DEBUGPANIC();
} }
} }
} }