aboutsummaryrefslogtreecommitdiff
path: root/examples/shared-with-init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shared-with-init.rs')
-rw-r--r--examples/shared-with-init.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs
index bd55f7ef..fa900a26 100644
--- a/examples/shared-with-init.rs
+++ b/examples/shared-with-init.rs
@@ -20,12 +20,14 @@ const APP: () = {
}
#[init(resources = [shared])]
- fn init(c: init::Context) {
+ fn init(c: init::Context) -> init::LateResources {
// this `message` will be sent to task `UART0`
let message = MustBeSend;
*c.resources.shared = Some(message);
rtic::pend(Interrupt::UART0);
+
+ init::LateResources {}
}
#[task(binds = UART0, resources = [shared])]