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/alignment.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/alignment.rs')
-rw-r--r-- | cortex-m-rt/examples/alignment.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/cortex-m-rt/examples/alignment.rs b/cortex-m-rt/examples/alignment.rs index ef1beaa..5635851 100644 --- a/cortex-m-rt/examples/alignment.rs +++ b/cortex-m-rt/examples/alignment.rs @@ -4,14 +4,12 @@ #![no_main] #![no_std] -#[macro_use(entry, exception)] +#[macro_use(entry)] extern crate cortex_m_rt as rt; extern crate panic_abort; use core::ptr; -use rt::ExceptionFrame; - entry!(main); static mut BSS1: u16 = 0; @@ -33,13 +31,3 @@ fn main() -> ! { loop {} } - -exception!(HardFault, hard_fault); - -fn hard_fault(_ef: &ExceptionFrame) -> ! { - loop {} -} - -exception!(*, default_handler); - -fn default_handler(_irqn: i16) {} |