integrate static-executor, cleanup time module.
This commit is contained in:
@ -26,5 +26,5 @@ panic-probe = "0.1.0"
|
||||
nrf52840-hal = { version = "0.11.0" }
|
||||
embassy = { version = "0.1.0", path = "../embassy" }
|
||||
embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt-trace", "52840"] }
|
||||
static-executor = { version = "0.1.0", features=["defmt"]}
|
||||
futures = { version = "0.3.5", default-features = false }
|
||||
futures = { version = "0.3.5", default-features = false }
|
||||
cortex-m-rtic = { git = "https://github.com/rtic-rs/cortex-m-rtic", branch = "master"}
|
@ -13,7 +13,7 @@ use embassy_nrf::gpiote;
|
||||
use futures::pin_mut;
|
||||
use nrf52840_hal::gpio;
|
||||
|
||||
use static_executor::{task, Executor};
|
||||
use embassy::executor::{task, Executor};
|
||||
static EXECUTOR: Executor = Executor::new(|| cortex_m::asm::sev());
|
||||
|
||||
#[task]
|
||||
|
@ -11,7 +11,7 @@ use embassy::flash::Flash;
|
||||
use embassy_nrf::qspi;
|
||||
use nrf52840_hal::gpio;
|
||||
|
||||
use static_executor::{task, Executor};
|
||||
use embassy::executor::{task, Executor};
|
||||
static EXECUTOR: Executor = Executor::new(|| cortex_m::asm::sev());
|
||||
|
||||
const PAGE_SIZE: usize = 4096;
|
||||
|
@ -12,7 +12,7 @@ use embassy_nrf::uarte;
|
||||
use futures::pin_mut;
|
||||
use nrf52840_hal::gpio;
|
||||
|
||||
use static_executor::{task, Executor};
|
||||
use embassy::executor::{task, Executor};
|
||||
static EXECUTOR: Executor = Executor::new(|| cortex_m::asm::sev());
|
||||
|
||||
#[task]
|
||||
|
Reference in New Issue
Block a user