diff options
author | 2020-10-08 17:33:42 +0200 | |
---|---|---|
committer | 2020-10-08 17:33:42 +0200 | |
commit | c83b15b643346c54f09ef130b5abd5ca31abfcd5 (patch) | |
tree | b1b350b834c243e05f4328d1b4922f1d9e0f373c /examples/schedule.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/schedule.rs')
-rw-r--r-- | examples/schedule.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs index d5547b67..7e6adc1a 100644 --- a/examples/schedule.rs +++ b/examples/schedule.rs @@ -14,7 +14,7 @@ use rtic::cyccnt::{Instant, U32Ext as _}; #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] mod app { #[init(schedule = [foo, bar])] - fn init(mut cx: init::Context) { + fn init(mut cx: init::Context) -> init::LateResources { // Initialize (enable) the monotonic timer (CYCCNT) cx.core.DCB.enable_trace(); // required on Cortex-M7 devices that software lock the DWT (e.g. STM32F7) @@ -32,6 +32,8 @@ mod app { // Schedule `bar` to run 4e6 cycles in the future cx.schedule.bar(now + 4_000_000.cycles()).unwrap(); + + init::LateResources {} } #[task] |