integrate static-executor, cleanup time module.

This commit is contained in:
Dario Nieuwenhuis
2020-10-19 21:15:24 +02:00
parent 0e1adc58f4
commit cd9ecaef57
18 changed files with 842 additions and 387 deletions

View File

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

View File

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

View File

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