Skip to content
Snippets Groups Projects
Commit 4191372c authored by Ruben Asplund's avatar Ruben Asplund
Browse files

Updated timing_resources

parent e22cbd07
No related branches found
No related tags found
No related merge requests found
......@@ -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.
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment