HAL_ChibiOS: use system_halt_hook()

This commit is contained in:
Andrew Tridgell 2019-11-26 15:00:31 +11:00
parent c1575654e2
commit ef993f380f
1 changed files with 2 additions and 0 deletions

View File

@ -725,6 +725,8 @@
#define CH_CFG_SYSTEM_HALT_HOOK(reason) do { \
extern void memory_flush_all(void); \
memory_flush_all(); \
extern void system_halt_hook(void); \
system_halt_hook(); \
} while(0)
#endif