aboutsummaryrefslogtreecommitdiff
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 64376dd78..61ff1d6db 100644
--- a/examples/nrf/src/bin/timer.rs
+++ b/examples/nrf/src/bin/timer.rs
@@ -3,12 +3,12 @@
3#![feature(type_alias_impl_trait)] 3#![feature(type_alias_impl_trait)]
4 4
5use defmt::{info, unwrap}; 5use defmt::{info, unwrap};
6use embassy::executor::Spawner; 6use embassy_executor::executor::Spawner;
7use embassy::time::{Duration, Timer}; 7use embassy_executor::time::{Duration, Timer};
8use embassy_nrf::Peripherals; 8use embassy_nrf::Peripherals;
9use {defmt_rtt as _, panic_probe as _}; 9use {defmt_rtt as _, panic_probe as _};
10 10
11#[embassy::task] 11#[embassy_executor::task]
12async fn run1() { 12async fn run1() {
13 loop { 13 loop {
14 info!("BIG INFREQUENT TICK"); 14 info!("BIG INFREQUENT TICK");
@@ -16,7 +16,7 @@ async fn run1() {
16 } 16 }
17} 17}
18 18
19#[embassy::task] 19#[embassy_executor::task]
20async fn run2() { 20async fn run2() {
21 loop { 21 loop {
22 info!("tick"); 22 info!("tick");
@@ -24,7 +24,7 @@ async fn run2() {
24 } 24 }
25} 25}
26 26
27#[embassy::main] 27#[embassy_executor::main]
28async fn main(spawner: Spawner, _p: Peripherals) { 28async fn main(spawner: Spawner, _p: Peripherals) {
29 unwrap!(spawner.spawn(run1())); 29 unwrap!(spawner.spawn(run1()));
30 unwrap!(spawner.spawn(run2())); 30 unwrap!(spawner.spawn(run2()));