diff --git a/examples/timing_resources.rs b/examples/timing_resources.rs index ed569efef40aa7e8558c8bb66d0bf8df89dcc99c..b55f2ee18c1c512d6ed1b05da8557e6cb9c5ca85 100644 --- a/examples/timing_resources.rs +++ b/examples/timing_resources.rs @@ -40,9 +40,9 @@ const APP: () = { rtic::pend(stm32f411::Interrupt::EXTI0); asm::bkpt(); cx.resources.shared.lock(|shared| { - // asm::bkpt(); + asm::bkpt(); *shared += 1; - // asm::bkpt(); + asm::bkpt(); }); asm::bkpt(); } @@ -181,11 +181,11 @@ const APP: () = { // // (gdb) x 0xe0001004 // -// [Your answer here] +// [0x00000034 = 52] // // Calculate the total time (in cycles), for this section of code. // -// [Your answer here] +// [52-37 = 15 cycles] // // You should get a value around 15 cycles. // @@ -225,7 +225,7 @@ const APP: () = { // // (gdb) x 0xe0001004 // -// [Your answer here] +// [0x00000028 = 40] // // (gdb) c // @@ -235,14 +235,14 @@ const APP: () = { // // (gdb) x 0xe0001004 // -// [Your answer here] +// [0x00000032 = 50] // // From a real-time perspective the critical section infers // blocking (of higher priority tasks). // // How many clock cycles is the blocking? // -// [Your answer here] +// [50-40 = 10 cycles] // // Finally continue out of the closure. // @@ -252,7 +252,7 @@ const APP: () = { // // (gdb) x 0xe0001004 // -// [Your answer here] +// [0x00000034 = 52] // // This is the total execution time of. //