From 77089f84a80d3c0f3ea8887cfda72e89ce131cef Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 24 Mar 2018 22:05:08 -0400 Subject: [PATCH] #586 some clarity --- simulator/chconf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); \ } /**