aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/examples/main.rs')
-rw-r--r--cortex-m-rt/examples/main.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/cortex-m-rt/examples/main.rs b/cortex-m-rt/examples/main.rs
index d319249..e5ce3d1 100644
--- a/cortex-m-rt/examples/main.rs
+++ b/cortex-m-rt/examples/main.rs
@@ -4,25 +4,10 @@
#![no_main]
#![no_std]
-#[macro_use(exception)]
extern crate cortex_m_rt as rt;
extern crate panic_semihosting;
-use rt::ExceptionFrame;
-
#[no_mangle]
pub unsafe extern "C" 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) {}