mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 19:01:48 +00:00
Add chDbgPanic for unhandled exceptions.
This commit is contained in:
@@ -81,18 +81,27 @@ void port_halt(void) {
|
||||
|
||||
#if defined(LPC43XX_M4)
|
||||
CH_IRQ_HANDLER(MemManageVector) {
|
||||
CH_IRQ_PROLOGUE();
|
||||
#if CH_DBG_ENABLED
|
||||
chDbgPanic("MemManage");
|
||||
#else
|
||||
chSysHalt();
|
||||
#endif
|
||||
}
|
||||
|
||||
CH_IRQ_HANDLER(BusFaultVector) {
|
||||
CH_IRQ_PROLOGUE();
|
||||
#if CH_DBG_ENABLED
|
||||
chDbgPanic("BusFault");
|
||||
#else
|
||||
chSysHalt();
|
||||
#endif
|
||||
}
|
||||
|
||||
CH_IRQ_HANDLER(UsageFaultVector) {
|
||||
CH_IRQ_PROLOGUE();
|
||||
#if CH_DBG_ENABLED
|
||||
chDbgPanic("UsageFault");
|
||||
#else
|
||||
chSysHalt();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user