summaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nrf/src/bin/timer.rs')
-rw-r--r--examples/nrf/src/bin/timer.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/nrf/src/bin/timer.rs b/examples/nrf/src/bin/timer.rs
index 64376dd7..61ff1d6d 100644
--- a/examples/nrf/src/bin/timer.rs
+++ b/examples/nrf/src/bin/timer.rs
@@ -3,12 +3,12 @@
#![feature(type_alias_impl_trait)]
use defmt::{info, unwrap};
-use embassy::executor::Spawner;
-use embassy::time::{Duration, Timer};
+use embassy_executor::executor::Spawner;
+use embassy_executor::time::{Duration, Timer};
use embassy_nrf::Peripherals;
use {defmt_rtt as _, panic_probe as _};
-#[embassy::task]
+#[embassy_executor::task]
async fn run1() {
loop {
info!("BIG INFREQUENT TICK");
@@ -16,7 +16,7 @@ async fn run1() {
}
}
-#[embassy::task]
+#[embassy_executor::task]
async fn run2() {
loop {
info!("tick");
@@ -24,7 +24,7 @@ async fn run2() {
}
}
-#[embassy::main]
+#[embassy_executor::main]
async fn main(spawner: Spawner, _p: Peripherals) {
unwrap!(spawner.spawn(run1()));
unwrap!(spawner.spawn(run2()));