Created
August 21, 2020 20:20
-
-
Save bobmcwhirter/46f6f4808fb5548d01247f0ea4896c08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[inline(never)] | |
#[panic_handler] | |
fn panic(info: &PanicInfo) -> ! { | |
use cortex_m::interrupt; | |
interrupt::disable(); | |
rprintln!("panic"); | |
rprintln!("{}", info); | |
loop { | |
compiler_fence(SeqCst); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment