diff options
author | 2023-01-08 19:40:31 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:28 +0100 | |
commit | ceaf3613d3256f60b139a4f93220e3c298603b83 (patch) | |
tree | 02ee64f2ac4bebea1abe85f85ca761e44ea8beb9 /examples/task.rs | |
parent | 9a67f00a30f14df3b9635913f728afd0b40c138d (diff) | |
download | rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.gz rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.zst rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.zip |
Update semihosting
Diffstat (limited to 'examples/task.rs')
-rw-r--r-- | examples/task.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/task.rs b/examples/task.rs index fe1408b4..50287edd 100644 --- a/examples/task.rs +++ b/examples/task.rs @@ -27,31 +27,31 @@ mod app { #[task] async fn foo(_: foo::Context) { - hprintln!("foo - start").unwrap(); + hprintln!("foo - start"); // spawns `bar` onto the task scheduler // `foo` and `bar` have the same priority so `bar` will not run until // after `foo` terminates bar::spawn().unwrap(); - hprintln!("foo - middle").unwrap(); + hprintln!("foo - middle"); // spawns `baz` onto the task scheduler // `baz` has higher priority than `foo` so it immediately preempts `foo` baz::spawn().unwrap(); - hprintln!("foo - end").unwrap(); + hprintln!("foo - end"); } #[task] async fn bar(_: bar::Context) { - hprintln!("bar").unwrap(); + hprintln!("bar"); debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } #[task(priority = 2)] async fn baz(_: baz::Context) { - hprintln!("baz").unwrap(); + hprintln!("baz"); } } |