From fb88f73ba24517d4fd661f29457678272d19a430 Mon Sep 17 00:00:00 2001 From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se> Date: Wed, 6 Mar 2019 12:59:01 +0100 Subject: [PATCH] bare10_1 --- examples/bare10.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/bare10.rs b/examples/bare10.rs index 5d3882e..22af1a9 100644 --- a/examples/bare10.rs +++ b/examples/bare10.rs @@ -83,9 +83,9 @@ const APP: () = { fn trace_data(byte: u8) { let stim = &mut resources.ITM.stim[0]; iprintln!(stim, "data {}", byte); - // for _ in 0..10000 { - // asm::nop(); - // } + for _ in 0..10000 { + asm::nop(); + } } #[task(priority = 1, resources = [ITM])] @@ -145,15 +145,17 @@ const APP: () = { // // Did you loose any data (was the data correctly echoed)? // -// ** your answer here ** +// ** Yes ** // // Was the data correctly traced over the ITM? // -// ** your answer here ** +// ** No ** // // Why did you loose trace information? // -// ** your asnwer here ** +// ** trace_data is doing other work when is called again. +// Each task is given memory that is statically reserved to be spawed once hence when trying to spawn more then once an error will the thrown. +// ** // // Commit your answers (bare10_1) // -- GitLab