Browse Source

HAL_ChibiOS: output panics on system console

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
f3f6972fc0
  1. 8
      libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h

8
libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h

@ -507,9 +507,11 @@ @@ -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.

Loading…
Cancel
Save