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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs
index 9c94d1b4..1771d419 100644
--- a/examples/t-schedule.rs
+++ b/examples/t-schedule.rs
@@ -7,17 +7,17 @@
use panic_halt as _;
-#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT, dispatchers = [SSI0])]
+#[rtic::app(device = lm3s6965, dispatchers = [SSI0])]
mod app {
use rtic::cyccnt::{Instant, U32Ext as _};
#[init]
- fn init(c: init::Context) -> init::LateResources {
+ fn init(c: init::Context) -> (init::LateResources, init::Monotonics) {
let _: Result<(), ()> = foo::schedule(c.start + 10.cycles());
let _: Result<(), u32> = bar::schedule(c.start + 20.cycles(), 0);
let _: Result<(), (u32, u32)> = baz::schedule(c.start + 30.cycles(), 0, 1);
- init::LateResources {}
+ (init::LateResources {}, init::Monotonics())
}
#[idle]