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

@ -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"}

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]