diff options
author | 2021-02-20 19:22:45 +0100 | |
---|---|---|
committer | 2021-02-20 19:22:45 +0100 | |
commit | 555f36857ec93bed26ff4249593992f500b7c4ab (patch) | |
tree | 97db7bea39684b64f33d208bc4c413f469ae53e5 /examples/types.rs | |
parent | d02f9a02411de1bc79490c86541e95879b7b19b8 (diff) | |
download | rtic-555f36857ec93bed26ff4249593992f500b7c4ab.tar.gz rtic-555f36857ec93bed26ff4249593992f500b7c4ab.tar.zst rtic-555f36857ec93bed26ff4249593992f500b7c4ab.zip |
Test fixes
Diffstat (limited to 'examples/types.rs')
-rw-r--r-- | examples/types.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/types.rs b/examples/types.rs index bcdd30a9..8411eecd 100644 --- a/examples/types.rs +++ b/examples/types.rs @@ -7,10 +7,9 @@ use panic_semihosting as _; -#[rtic::app(device = lm3s6965, peripherals = true, monotonic = rtic::cyccnt::CYCCNT, dispatchers = [SSI0])] +#[rtic::app(device = lm3s6965, peripherals = true, dispatchers = [SSI0])] mod app { use cortex_m_semihosting::debug; - use rtic::cyccnt; #[resources] struct Resources { @@ -19,14 +18,14 @@ mod app { } #[init] - fn init(cx: init::Context) -> init::LateResources { + fn init(cx: init::Context) -> (init::LateResources, init::Monotonics) { let _: cyccnt::Instant = cx.start; let _: rtic::Peripherals = cx.core; let _: lm3s6965::Peripherals = cx.device; debug::exit(debug::EXIT_SUCCESS); - init::LateResources {} + (init::LateResources {}, init::Monotonics()) } #[idle] |