We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b3113 commit 0b81e79Copy full SHA for 0b81e79
rp235x-hal/src/arch.rs
@@ -473,16 +473,15 @@ mod inner {
473
474
/// Our default IRQ handler.
475
///
476
- /// Just panics.
477
- ///
478
- /// # Safety
479
480
- /// Do not call this function - it is called automatically when our
481
- /// `MachineExternal` interrupt handler can't find anything better to call.
+ /// Just spins.
482
#[no_mangle]
483
#[allow(non_snake_case)]
484
- unsafe fn DefaultIrqHandler() {
485
- panic!();
+ fn DefaultIrqHandler() {
+ // Spin, so you can attach a debugger if you get stuck here.
+ // This is the also the default functionality used in cortex-m-rt.
+ loop {
+ crate::arch::nop();
+ }
486
}
487
488
0 commit comments