Skip to content

Commit 97b184d

Browse files
authored
remove exception handler overrides
they are not required anymore
1 parent 277436e commit 97b184d

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

cortex-m-rt/examples/data_overflow.rs

+1-13
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
#![no_main]
66
#![no_std]
77

8-
#[macro_use(entry, exception)]
8+
#[macro_use(entry)]
99
extern crate cortex_m_rt as rt;
1010
extern crate panic_abort;
1111

1212
use core::ptr;
1313

14-
use rt::ExceptionFrame;
15-
1614
entry!(main);
1715

1816
// This large static array uses most of .rodata
@@ -30,13 +28,3 @@ fn main() -> ! {
3028

3129
loop {}
3230
}
33-
34-
exception!(HardFault, hard_fault);
35-
36-
fn hard_fault(_ef: &ExceptionFrame) -> ! {
37-
loop {}
38-
}
39-
40-
exception!(*, default_handler);
41-
42-
fn default_handler(_irqn: i16) {}

0 commit comments

Comments
 (0)