diff --git a/simulator/chconf.h b/simulator/chconf.h index 16c7d2826e..fdbbcacdb7 100644 --- a/simulator/chconf.h +++ b/simulator/chconf.h @@ -503,13 +503,18 @@ /* System tick event code here.*/ \ } +#include +#include +#include + /** * @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); \ } /**