aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/minimal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/examples/minimal.rs')
-rw-r--r--cortex-m-rt/examples/minimal.rs16
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) {}