From a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 29 Jul 2022 21:58:35 +0200 Subject: Split embassy crate into embassy-executor, embassy-util. --- examples/boot/application/nrf/src/bin/a.rs | 4 ++-- examples/boot/application/nrf/src/bin/b.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/boot/application/nrf/src') diff --git a/examples/boot/application/nrf/src/bin/a.rs b/examples/boot/application/nrf/src/bin/a.rs index 0b9715e49..3044645a8 100644 --- a/examples/boot/application/nrf/src/bin/a.rs +++ b/examples/boot/application/nrf/src/bin/a.rs @@ -13,8 +13,8 @@ use panic_reset as _; static APP_B: &[u8] = include_bytes!("../../b.bin"); -#[embassy::main] -async fn main(_s: embassy::executor::Spawner, p: Peripherals) { +#[embassy_executor::main] +async fn main(_s: embassy_executor::executor::Spawner, p: Peripherals) { let mut button = Input::new(p.P0_11, Pull::Up); let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); //let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard); diff --git a/examples/boot/application/nrf/src/bin/b.rs b/examples/boot/application/nrf/src/bin/b.rs index a06c20f8b..2f76d20c6 100644 --- a/examples/boot/application/nrf/src/bin/b.rs +++ b/examples/boot/application/nrf/src/bin/b.rs @@ -4,13 +4,13 @@ #![feature(generic_associated_types)] #![feature(type_alias_impl_trait)] -use embassy::time::{Duration, Timer}; +use embassy_executor::time::{Duration, Timer}; use embassy_nrf::gpio::{Level, Output, OutputDrive}; use embassy_nrf::Peripherals; use panic_reset as _; -#[embassy::main] -async fn main(_s: embassy::executor::Spawner, p: Peripherals) { +#[embassy_executor::main] +async fn main(_s: embassy_executor::executor::Spawner, p: Peripherals) { let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); //let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard); -- cgit