aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/nrf/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/boot/application/nrf/src')
-rw-r--r--examples/boot/application/nrf/src/bin/a.rs4
-rw-r--r--examples/boot/application/nrf/src/bin/b.rs6
2 files changed, 5 insertions, 5 deletions
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 _;
13 13
14static APP_B: &[u8] = include_bytes!("../../b.bin"); 14static APP_B: &[u8] = include_bytes!("../../b.bin");
15 15
16#[embassy::main] 16#[embassy_executor::main]
17async fn main(_s: embassy::executor::Spawner, p: Peripherals) { 17async fn main(_s: embassy_executor::executor::Spawner, p: Peripherals) {
18 let mut button = Input::new(p.P0_11, Pull::Up); 18 let mut button = Input::new(p.P0_11, Pull::Up);
19 let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); 19 let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard);
20 //let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard); 20 //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 @@
4#![feature(generic_associated_types)] 4#![feature(generic_associated_types)]
5#![feature(type_alias_impl_trait)] 5#![feature(type_alias_impl_trait)]
6 6
7use embassy::time::{Duration, Timer}; 7use embassy_executor::time::{Duration, Timer};
8use embassy_nrf::gpio::{Level, Output, OutputDrive}; 8use embassy_nrf::gpio::{Level, Output, OutputDrive};
9use embassy_nrf::Peripherals; 9use embassy_nrf::Peripherals;
10use panic_reset as _; 10use panic_reset as _;
11 11
12#[embassy::main] 12#[embassy_executor::main]
13async fn main(_s: embassy::executor::Spawner, p: Peripherals) { 13async fn main(_s: embassy_executor::executor::Spawner, p: Peripherals) {
14 let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard); 14 let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard);
15 //let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard); 15 //let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard);
16 16