From 8c90b3f40eb62718b7135c5481b0224cadd3b10b Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Sat, 7 Jan 2023 14:27:57 +0100 Subject: [PATCH] examples/multiloc fixed --- examples/{message.rs => message.no_rs} | 0 examples/{message_passing.rs => message_passing.no_rs} | 0 examples/multilock.rs | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename examples/{message.rs => message.no_rs} (100%) rename examples/{message_passing.rs => message_passing.no_rs} (100%) diff --git a/examples/message.rs b/examples/message.no_rs similarity index 100% rename from examples/message.rs rename to examples/message.no_rs diff --git a/examples/message_passing.rs b/examples/message_passing.no_rs similarity index 100% rename from examples/message_passing.rs rename to examples/message_passing.no_rs diff --git a/examples/multilock.rs b/examples/multilock.rs index d99bae695e..7bea2d37c4 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;