aboutsummaryrefslogtreecommitdiff
path: root/examples/t-schedule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-schedule.rs')
-rw-r--r--examples/t-schedule.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs
index 3854aad3..8af01aba 100644
--- a/examples/t-schedule.rs
+++ b/examples/t-schedule.rs
@@ -11,10 +11,12 @@ use rtic::cyccnt::{Instant, U32Ext as _};
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
#[init(schedule = [foo, bar, baz])]
- fn init(c: init::Context) {
+ fn init(c: init::Context) -> init::LateResources {
let _: Result<(), ()> = c.schedule.foo(c.start + 10.cycles());
let _: Result<(), u32> = c.schedule.bar(c.start + 20.cycles(), 0);
let _: Result<(), (u32, u32)> = c.schedule.baz(c.start + 30.cycles(), 0, 1);
+
+ init::LateResources {}
}
#[idle(schedule = [foo, bar, baz])]