From 6dc2d29cd994a27fa59e23f9fb0bece677c83ffa Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Sat, 7 Jan 2023 14:07:50 +0100 Subject: [PATCH] export Cell removed, expmples updated --- examples/idle.rs | 4 ++-- examples/init.rs | 4 ++-- src/export.rs | 5 +---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/idle.rs b/examples/idle.rs index 55d6b15352..9a7a7275a9 100644 --- a/examples/idle.rs +++ b/examples/idle.rs @@ -18,10 +18,10 @@ mod app { struct Local {} #[init] - fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + fn init(_: init::Context) -> (Shared, Local) { hprintln!("init").unwrap(); - (Shared {}, Local {}, init::Monotonics()) + (Shared {}, Local {}) } #[idle(local = [x: u32 = 0])] diff --git a/examples/init.rs b/examples/init.rs index b8a5bc5b98..c807a3c10b 100644 --- a/examples/init.rs +++ b/examples/init.rs @@ -18,7 +18,7 @@ mod app { struct Local {} #[init(local = [x: u32 = 0])] - fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { + fn init(cx: init::Context) -> (Shared, Local) { // Cortex-M peripherals let _core: cortex_m::Peripherals = cx.core; @@ -36,6 +36,6 @@ mod app { debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator - (Shared {}, Local {}, init::Monotonics()) + (Shared {}, Local {}) } } diff --git a/src/export.rs b/src/export.rs index 49ebd878ef..d6b2fc0406 100644 --- a/src/export.rs +++ b/src/export.rs @@ -1,8 +1,5 @@ pub use bare_metal::CriticalSection; -use core::{ - cell::Cell, - sync::atomic::{AtomicBool, Ordering}, -}; +use core::sync::atomic::{AtomicBool, Ordering}; pub use cortex_m::{ asm::nop, asm::wfi,