Skip to content

Commit 743b8fc

Browse files
committed
Remove the setting of exceptions from the pre_init example as they are now defaulted
Signed-off-by: Gabriel Smith <[email protected]>
1 parent 0c4edaa commit 743b8fc

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

cortex-m-rt/examples/pre_init.rs

+1-15
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
#![no_main]
55
#![no_std]
66

7-
#[macro_use(entry, exception, pre_init)]
7+
#[macro_use(entry, pre_init)]
88
extern crate cortex_m_rt as rt;
99
extern crate panic_semihosting;
1010

11-
use rt::ExceptionFrame;
12-
1311
pre_init!(disable_watchdog);
1412

1513
unsafe fn disable_watchdog() {
@@ -22,15 +20,3 @@ entry!(main);
2220
fn main() -> ! {
2321
loop {}
2422
}
25-
26-
// the hard fault handler
27-
exception!(HardFault, hard_fault);
28-
29-
fn hard_fault(_ef: &ExceptionFrame) -> ! {
30-
loop {}
31-
}
32-
33-
// the default exception handler
34-
exception!(*, default_handler);
35-
36-
fn default_handler(_irqn: i16) {}

0 commit comments

Comments
 (0)