GEX core repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
gex-core/stm32_assert.c

24 lines
583 B

#include "platform.h"
#include "platform/status_led.h"
void _abort_errlight(void)
{
Indicator_Effect(STATUS_FAULT);
}
void __attribute__((noreturn)) _abort_do(void)
{
vPortEnterCritical();
while(1);
}
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
*/
void __attribute__((noreturn)) _assert_failed(const char *file, uint32_t line)
{
_abort_msg(file, line, "ASSERT FAILED");
}