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

25 lines
583 B

7 years ago
#include "platform.h"
#include "platform/status_led.h"
void _abort_errlight(void)
7 years ago
{
Indicator_Effect(STATUS_FAULT);
7 years ago
}
void __attribute__((noreturn)) _abort_do(void)
7 years ago
{
vPortEnterCritical();
while(1);
7 years ago
}
/**
* @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)
7 years ago
{
_abort_msg(file, line, "ASSERT FAILED");
7 years ago
}