export Cell removed, expmples updated

This commit is contained in:
Per Lindgren 2023-01-07 14:07:50 +01:00 committed by Henrik Tjäder
parent 322c8b9562
commit 8444ba7054
3 changed files with 5 additions and 8 deletions

View file

@ -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])]

View file

@ -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 {})
}
}

View file

@ -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,