diff options
author | 2018-08-11 20:41:46 -0500 | |
---|---|---|
committer | 2018-08-11 20:41:46 -0500 | |
commit | 3b25e71a78c6ac8514f3d59dc6e124a57439dcb6 (patch) | |
tree | 12630e79c3f08c358fccfe680813b159576fea21 /cortex-m-rt/examples/state.rs | |
parent | 230d42233d35f13de82c1c7cb893352512ed3794 (diff) | |
download | cortex-m-3b25e71a78c6ac8514f3d59dc6e124a57439dcb6.tar.gz cortex-m-3b25e71a78c6ac8514f3d59dc6e124a57439dcb6.tar.zst cortex-m-3b25e71a78c6ac8514f3d59dc6e124a57439dcb6.zip |
v0.5.2
Diffstat (limited to 'cortex-m-rt/examples/state.rs')
-rw-r--r-- | cortex-m-rt/examples/state.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cortex-m-rt/examples/state.rs b/cortex-m-rt/examples/state.rs index 0b5eeeb..dbacdaf 100644 --- a/cortex-m-rt/examples/state.rs +++ b/cortex-m-rt/examples/state.rs @@ -9,8 +9,6 @@ extern crate cortex_m_rt as rt; extern crate panic_semihosting; -use rt::ExceptionFrame; - // the program entry point entry!(main); @@ -24,15 +22,3 @@ exception!(SysTick, sys_tick, state: u32 = 0); fn sys_tick(state: &mut u32) { *state += 1; } - -// the hard fault handler -exception!(HardFault, hard_fault); - -fn hard_fault(_ef: &ExceptionFrame) -> ! { - loop {} -} - -// the default exception handler -exception!(*, default_handler); - -fn default_handler(_irqn: i16) {} |