diff options
Diffstat (limited to 'examples/t-schedule.rs')
-rw-r--r-- | examples/t-schedule.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs index d7051609..6708c689 100644 --- a/examples/t-schedule.rs +++ b/examples/t-schedule.rs @@ -15,8 +15,14 @@ mod app { #[monotonic(binds = SysTick, default = true)] type MyMono = DwtSystick<8_000_000>; // 8 MHz + #[shared] + struct Shared {} + + #[local] + struct Local {} + #[init] - fn init(cx: init::Context) -> (init::LateResources, init::Monotonics) { + fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { let mut dcb = cx.core.DCB; let dwt = cx.core.DWT; let systick = cx.core.SYST; @@ -114,7 +120,7 @@ mod app { let handle: Result<baz::SpawnHandle, (u32, u32)> = baz::spawn_after(Seconds(1_u32), 0, 1); let _: Result<(u32, u32), ()> = handle.unwrap().cancel(); - (init::LateResources {}, init::Monotonics(mono)) + (Shared {}, Local {}, init::Monotonics(mono)) } #[idle] |