HAL_ChibiOS: output panics on system console

This commit is contained in:
Andrew Tridgell 2018-01-08 16:22:50 +11:00
parent 7c8cf0a39e
commit f3f6972fc0

View File

@ -507,9 +507,11 @@
* @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.*/ \
}
#define CH_CFG_SYSTEM_HALT_HOOK(reason) do { \
extern int printf(const char *fmt, ...); \
printf(reason); \
} while(0)
/**
* @brief Trace hook.