diff options
Diffstat (limited to 'examples/t-cfg.rs')
-rw-r--r-- | examples/t-cfg.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs index 5bcef0af..ef591c4d 100644 --- a/examples/t-cfg.rs +++ b/examples/t-cfg.rs @@ -3,9 +3,9 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting 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] |