diff options
author | 2023-01-07 17:59:39 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:24 +0100 | |
commit | 9a4f97ca5ebf19e6612115db5c763d0d61dd28a1 (patch) | |
tree | 1f37d247f715ad3d5215aa7de3aa6d4eb94a7027 /examples/async-task.rs | |
parent | 5606ba3cf38c80be5d3e9c88ad4da9982b114851 (diff) | |
download | rtic-9a4f97ca5ebf19e6612115db5c763d0d61dd28a1.tar.gz rtic-9a4f97ca5ebf19e6612115db5c763d0d61dd28a1.tar.zst rtic-9a4f97ca5ebf19e6612115db5c763d0d61dd28a1.zip |
more examples
Diffstat (limited to 'examples/async-task.rs')
-rw-r--r-- | examples/async-task.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/async-task.rs b/examples/async-task.rs index 012e95ee..210a8651 100644 --- a/examples/async-task.rs +++ b/examples/async-task.rs @@ -34,9 +34,9 @@ mod app { #[idle(shared = [a])] fn idle(_: idle::Context) -> ! { - // debug::exit(debug::EXIT_SUCCESS); loop { - // hprintln!("idle"); + hprintln!("idle"); + debug::exit(debug::EXIT_SUCCESS); cortex_m::asm::wfi(); // put the MCU in sleep mode until interrupt occurs } } @@ -51,8 +51,6 @@ mod app { async fn async_task(cx: async_task::Context) { let async_task::SharedResources { a: _, .. } = cx.shared; hprintln!("hello from async").ok(); - - debug::exit(debug::EXIT_SUCCESS); } #[task(priority = 2, shared = [a])] |