aboutsummaryrefslogtreecommitdiff
path: root/examples/t-cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-cfg.rs')
-rw-r--r--examples/t-cfg.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs
index 5bcef0af..ff06ee8e 100644
--- a/examples/t-cfg.rs
+++ b/examples/t-cfg.rs
@@ -5,7 +5,7 @@
use panic_halt as _;
-#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT, dispatchers = [SSI0, QEI0])]
+#[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0])]
mod app {
#[resources]
struct Resources {
@@ -15,11 +15,11 @@ mod app {
}
#[init]
- fn init(_: init::Context) -> init::LateResources {
+ fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
#[cfg(never)]
static mut BAR: u32 = 0;
- init::LateResources {}
+ (init::LateResources {}, init::Monotonics())
}
#[idle]