mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
boards: 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
939b990a9c
commit
83442aa70c
@@ -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 */
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user