diff options
author | 2018-08-12 16:31:17 -0400 | |
---|---|---|
committer | 2018-08-12 16:31:17 -0400 | |
commit | 743b8fc282f16ab54ff9ff2540f8db337f3562ad (patch) | |
tree | 490bc179b9ad7db56f5a5781b5d9e6fc1ce034a2 | |
parent | 0c4edaac81490ba19216e4da418527843f574172 (diff) | |
download | cortex-m-743b8fc282f16ab54ff9ff2540f8db337f3562ad.tar.gz cortex-m-743b8fc282f16ab54ff9ff2540f8db337f3562ad.tar.zst cortex-m-743b8fc282f16ab54ff9ff2540f8db337f3562ad.zip |
Remove the setting of exceptions from the pre_init example as they are now defaulted
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
-rw-r--r-- | cortex-m-rt/examples/pre_init.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/cortex-m-rt/examples/pre_init.rs b/cortex-m-rt/examples/pre_init.rs index d83af03..7258936 100644 --- a/cortex-m-rt/examples/pre_init.rs +++ b/cortex-m-rt/examples/pre_init.rs @@ -4,12 +4,10 @@ #![no_main] #![no_std] -#[macro_use(entry, exception, pre_init)] +#[macro_use(entry, pre_init)] extern crate cortex_m_rt as rt; extern crate panic_semihosting; -use rt::ExceptionFrame; - pre_init!(disable_watchdog); unsafe fn disable_watchdog() { @@ -22,15 +20,3 @@ 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) {} |