forked from ROMEO/obsw
handling failed freeRTOS assertion as panic
This commit is contained in:
@ -241,6 +241,7 @@ void vApplicationMallocFailedHook(void) {
|
||||
timers, and semaphores. The size of the FreeRTOS heap is set by the
|
||||
configTOTAL_HEAP_SIZE configuration constant in FreeRTOSConfig.h. */
|
||||
taskDISABLE_INTERRUPTS();
|
||||
//TODO panic
|
||||
for (;;)
|
||||
;
|
||||
}
|
||||
@ -254,6 +255,7 @@ void vApplicationStackOverflowHook(TaskHandle_t pxTask, char *pcTaskName) {
|
||||
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook
|
||||
function is called if a stack overflow is detected. */
|
||||
taskDISABLE_INTERRUPTS();
|
||||
//TODO panic
|
||||
for (;;)
|
||||
;
|
||||
}
|
||||
@ -277,7 +279,14 @@ void vApplicationIdleHook(void) {
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void rust_assert_called(const char *pcFile, unsigned long ulLine);
|
||||
|
||||
|
||||
void vAssertCalled(const char *pcFile, unsigned long ulLine) {
|
||||
|
||||
rust_assert_called(pcFile, ulLine);
|
||||
|
||||
|
||||
volatile unsigned long ul = 0;
|
||||
|
||||
(void)pcFile;
|
||||
|
Reference in New Issue
Block a user