From 98d2af9d73da56910c8bb6cb662fbc4d609a704a Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 7 Jul 2021 22:50:59 +0200 Subject: Fixing tests --- examples/t-schedule.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'examples/t-schedule.rs') diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs index d705160..6708c68 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::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] -- cgit v1.2.3