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/minimal.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/minimal.rs')
-rw-r--r-- | cortex-m-rt/examples/minimal.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/cortex-m-rt/examples/minimal.rs b/cortex-m-rt/examples/minimal.rs index c12d12d..a036046 100644 --- a/cortex-m-rt/examples/minimal.rs +++ b/cortex-m-rt/examples/minimal.rs @@ -5,27 +5,13 @@ #![no_main] #![no_std] -#[macro_use(entry, exception)] +#[macro_use(entry)] extern crate cortex_m_rt as rt; extern crate panic_semihosting; -use rt::ExceptionFrame; - // the program entry point entry!(main); fn main() -> ! { loop {} } - -// 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) {} |