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

C complete

parent 6d483d4d
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,12 @@ const APP: () = { ...@@ -21,10 +21,12 @@ const APP: () = {
#[idle] #[idle]
fn idle(_cx: idle::Context) -> ! { fn idle(_cx: idle::Context) -> ! {
rprintln!("idle"); rprintln!("idle");
// panic!("panic"); panic!("panic");
/*
loop { loop {
continue; continue;
} }
*/
} }
}; };
...@@ -64,6 +66,16 @@ const APP: () = { ...@@ -64,6 +66,16 @@ const APP: () = {
// What is the output? // What is the output?
// //
// [Your answer here] // [Your answer here]
/*
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `probe-run --chip STM32F411RETx target/thumbv7em-none-eabi/debug/app`
(HOST) INFO flashing program (18.18 KiB)
(HOST) INFO success!
────────────────────────────────────────────────────────────────────────────────
init
idle
panicked at 'panic', src/main.rs:24:9
*/
// //
// D) Panic halt // D) Panic halt
// Tracing is nice during development, but requires a debugger attached // Tracing is nice during development, but requires a debugger attached
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment