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/peripherals-taken.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'examples/peripherals-taken.rs') diff --git a/examples/peripherals-taken.rs b/examples/peripherals-taken.rs index 6b4a282..cb90319 100644 --- a/examples/peripherals-taken.rs +++ b/examples/peripherals-taken.rs @@ -9,11 +9,17 @@ use panic_semihosting as _; mod app { use cortex_m_semihosting::debug; + #[shared] + struct Shared {} + + #[local] + struct Local {} + #[init] - fn init(_: init::Context) -> (init::LateResources, init::Monotonics) { + fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { assert!(cortex_m::Peripherals::take().is_none()); debug::exit(debug::EXIT_SUCCESS); - (init::LateResources {}, init::Monotonics()) + (Shared {}, Local {}, init::Monotonics()) } } -- cgit v1.2.3