mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 03:37:40 +00:00
Add chDbgPanic for unhandled exceptions.
This commit is contained in:
@@ -178,9 +178,12 @@ vectors_t _vectors = {
|
||||
__attribute__ ((naked))
|
||||
#endif
|
||||
void _unhandled_exception(void) {
|
||||
|
||||
#if CH_DBG_ENABLED
|
||||
chDbgPanic("Unhandled");
|
||||
#else
|
||||
while (TRUE)
|
||||
;
|
||||
#endif
|
||||
}
|
||||
|
||||
void NMIVector(void) __attribute__((weak, alias("_unhandled_exception")));
|
||||
|
Reference in New Issue
Block a user