diff options
author | 2023-01-07 14:27:57 +0100 | |
---|---|---|
committer | 2023-03-01 00:31:08 +0100 | |
commit | 569a761122f15a92671b299603a5dc7fe6e5324b (patch) | |
tree | 1d8446042afdadba095b01126a047b880dbc5f32 /examples/multilock.rs | |
parent | 76595b7aedd2a14aea8569b75fabe62120f93230 (diff) | |
download | rtic-569a761122f15a92671b299603a5dc7fe6e5324b.tar.gz rtic-569a761122f15a92671b299603a5dc7fe6e5324b.tar.zst rtic-569a761122f15a92671b299603a5dc7fe6e5324b.zip |
examples/multiloc fixed
Diffstat (limited to 'examples/multilock.rs')
-rw-r--r-- | examples/multilock.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/multilock.rs b/examples/multilock.rs index d99bae69..7bea2d37 100644 --- a/examples/multilock.rs +++ b/examples/multilock.rs @@ -4,6 +4,7 @@ #![deny(warnings)] #![no_main] #![no_std] +#![feature(type_alias_impl_trait)] use panic_semihosting as _; @@ -22,7 +23,7 @@ mod app { struct Local {} #[init] - fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + fn init(_: init::Context) -> (Shared, Local) { locks::spawn().unwrap(); ( @@ -32,13 +33,12 @@ mod app { shared3: 0, }, Local {}, - init::Monotonics(), ) } // when omitted priority is assumed to be `1` #[task(shared = [shared1, shared2, shared3])] - fn locks(c: locks::Context) { + async fn locks(c: locks::Context) { let s1 = c.shared.shared1; let s2 = c.shared.shared2; let s3 = c.shared.shared3; |