We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c4edaa commit 743b8fcCopy full SHA for 743b8fc
cortex-m-rt/examples/pre_init.rs
@@ -4,12 +4,10 @@
4
#![no_main]
5
#![no_std]
6
7
-#[macro_use(entry, exception, pre_init)]
+#[macro_use(entry, pre_init)]
8
extern crate cortex_m_rt as rt;
9
extern crate panic_semihosting;
10
11
-use rt::ExceptionFrame;
12
-
13
pre_init!(disable_watchdog);
14
15
unsafe fn disable_watchdog() {
@@ -22,15 +20,3 @@ entry!(main);
22
20
fn main() -> ! {
23
21
loop {}
24
}
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