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.
25 lines
544 B
25 lines
544 B
9 years ago
|
#include "main.h"
|
||
|
#include "utils/timebase.h"
|
||
|
#include "com/debug.h"
|
||
|
|
||
|
#ifdef USE_FULL_ASSERT
|
||
|
|
||
|
/**
|
||
|
* @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
|
||
|
* @return None
|
||
|
*/
|
||
|
void __attribute__((noreturn))
|
||
|
assert_failed(uint8_t* file, uint32_t line)
|
||
|
{
|
||
|
error("Assert failed in file %s, line %"PRIu32".", file, line);
|
||
|
|
||
|
/* Infinite loop */
|
||
|
while (1);
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|