integrate static-executor, cleanup time module.
This commit is contained in:
@ -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