diff options
author | 2020-10-08 17:33:42 +0200 | |
---|---|---|
committer | 2020-10-08 17:33:42 +0200 | |
commit | c83b15b643346c54f09ef130b5abd5ca31abfcd5 (patch) | |
tree | b1b350b834c243e05f4328d1b4922f1d9e0f373c /examples/shared-with-init.rs | |
parent | e8b4fa7b32cf044428971f22e01428ff9cccff3c (diff) | |
parent | 36781cdd890752d6876623d8802b860e950b24eb (diff) | |
download | rtic-c83b15b643346c54f09ef130b5abd5ca31abfcd5.tar.gz rtic-c83b15b643346c54f09ef130b5abd5ca31abfcd5.tar.zst rtic-c83b15b643346c54f09ef130b5abd5ca31abfcd5.zip |
Merge branch 'master' into spawn_experiment
Diffstat (limited to 'examples/shared-with-init.rs')
-rw-r--r-- | examples/shared-with-init.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs index 9f7e26aa..85c72761 100644 --- a/examples/shared-with-init.rs +++ b/examples/shared-with-init.rs @@ -23,12 +23,14 @@ mod 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])] |