re-add DefaultHandler

This commit is contained in:
Robert Jördens 2021-03-03 17:05:22 +01:00
parent 475f2b3dd2
commit 059d4faf9f

View File

@ -61,3 +61,8 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
panic!("HardFault at {:#?}", ef);
}
#[cortex_m_rt::exception]
fn DefaultHandler(irqn: i16) {
panic!("Unhandled exception (IRQn = {})", irqn);
}