Skip to content
Snippets Groups Projects
Commit e9b8a06a authored by Edvin Åkerfeldt's avatar Edvin Åkerfeldt
Browse files

E complete

parent ea2982f9
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,8 @@ rtt-target = { version = "0.3.0", features = ["cortex-m"] }
# panic handlers
panic-halt = "0.2.0"
panic-semihosting = "0.5.6"
panic-rtt-target = { version = "0.1.1", features = ["cortex-m"] }
#panic-semihosting = "0.5.6"
#panic-rtt-target = { version = "0.1.1", features = ["cortex-m"] }
[dependencies.stm32f4]
version = "0.12.1"
......
......@@ -130,3 +130,15 @@ idle
//
// Paste the implementation here
// [Your answer here]
/*
The implementation for our panic is found to be an infinite loop with a no reordering compiler fence.
This means that it is impossible for the program to leave this point in the code. This is a halt.
#[inline(never)]
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {
atomic::compiler_fence(Ordering::SeqCst);
}
}
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment