diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-02-20 19:22:45 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-02-20 19:22:45 +0100 |
| commit | 555f36857ec93bed26ff4249593992f500b7c4ab (patch) | |
| tree | 97db7bea39684b64f33d208bc4c413f469ae53e5 /examples/double_schedule.rs | |
| parent | d02f9a02411de1bc79490c86541e95879b7b19b8 (diff) | |
Test fixes
Diffstat (limited to 'examples/double_schedule.rs')
| -rw-r--r-- | examples/double_schedule.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/double_schedule.rs b/examples/double_schedule.rs index 32477ef..77a8e38 100644 --- a/examples/double_schedule.rs +++ b/examples/double_schedule.rs @@ -7,20 +7,13 @@ use panic_semihosting as _; -#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT, dispatchers = [SSI0])] +#[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { - use rtic::cyccnt::U32Ext; - - #[resources] - struct Resources { - nothing: (), - } - #[init] - fn init(_: init::Context) -> init::LateResources { + fn init(_: init::Context) -> (init::LateResources, init::Monotonics) { task1::spawn().ok(); - init::LateResources { nothing: () } + (init::LateResources {}, init::Monotonics()) } #[task] |
