mirror of https://github.com/FOME-Tech/fome-fw.git
parent
eab0410622
commit
77089f84a8
|
@ -503,13 +503,18 @@
|
|||
/* System tick event code here.*/ \
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
/**
|
||||
* @brief System halt hook.
|
||||
* @details This hook is invoked in case to a system halting error before
|
||||
* the system is halted.
|
||||
*/
|
||||
#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
|
||||
/* System halt code here.*/ \
|
||||
printf("chSysHalt\r\n"); \
|
||||
exit(-1); \
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue