aboutsummaryrefslogtreecommitdiff
path: root/examples/async-task.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-08 19:40:31 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:33:28 +0100
commitceaf3613d3256f60b139a4f93220e3c298603b83 (patch)
tree02ee64f2ac4bebea1abe85f85ca761e44ea8beb9 /examples/async-task.rs
parent9a67f00a30f14df3b9635913f728afd0b40c138d (diff)
downloadrtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.gz
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.zst
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.zip
Update semihosting
Diffstat (limited to 'examples/async-task.rs')
-rw-r--r--examples/async-task.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/async-task.rs b/examples/async-task.rs
index 210a8651..780bc081 100644
--- a/examples/async-task.rs
+++ b/examples/async-task.rs
@@ -24,7 +24,7 @@ mod app {
#[init]
fn init(_cx: init::Context) -> (Shared, Local) {
- hprintln!("init").unwrap();
+ hprintln!("init");
async_task::spawn().unwrap();
async_task2::spawn().unwrap();
@@ -44,18 +44,18 @@ mod app {
#[task(binds = UART1, shared = [a])]
fn hw_task(cx: hw_task::Context) {
let hw_task::SharedResources { a: _, .. } = cx.shared;
- hprintln!("hello from hw").ok();
+ hprintln!("hello from hw");
}
#[task(shared = [a])]
async fn async_task(cx: async_task::Context) {
let async_task::SharedResources { a: _, .. } = cx.shared;
- hprintln!("hello from async").ok();
+ hprintln!("hello from async");
}
#[task(priority = 2, shared = [a])]
async fn async_task2(cx: async_task2::Context) {
let async_task2::SharedResources { a: _, .. } = cx.shared;
- hprintln!("hello from async2").ok();
+ hprintln!("hello from async2");
}
}