aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf-examples/src/bin/timer.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-03-29 03:00:48 +0200
committerDario Nieuwenhuis <[email protected]>2021-03-29 03:00:48 +0200
commitd7c3a38efceacbd5a326c84c6e0bbef44b06e97c (patch)
tree710b6553a45b99719288ab9de9084e0a93554cee /embassy-nrf-examples/src/bin/timer.rs
parentd5ab02792c5489668bd399ac094900f5e26b3420 (diff)
Reexport macros at root, use eveywhere as `#[embassy::task]`
Diffstat (limited to 'embassy-nrf-examples/src/bin/timer.rs')
-rw-r--r--embassy-nrf-examples/src/bin/timer.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf-examples/src/bin/timer.rs b/embassy-nrf-examples/src/bin/timer.rs
index 6116aa60d..a2b717bc1 100644
--- a/embassy-nrf-examples/src/bin/timer.rs
+++ b/embassy-nrf-examples/src/bin/timer.rs
@@ -10,10 +10,10 @@ mod example_common;
10use example_common::*; 10use example_common::*;
11 11
12use defmt::panic; 12use defmt::panic;
13use embassy::executor::{task, Spawner}; 13use embassy::executor::Spawner;
14use embassy::time::{Duration, Timer}; 14use embassy::time::{Duration, Timer};
15 15
16#[task] 16#[embassy::task]
17async fn run1() { 17async fn run1() {
18 loop { 18 loop {
19 info!("BIG INFREQUENT TICK"); 19 info!("BIG INFREQUENT TICK");
@@ -21,7 +21,7 @@ async fn run1() {
21 } 21 }
22} 22}
23 23
24#[task] 24#[embassy::task]
25async fn run2() { 25async fn run2() {
26 loop { 26 loop {
27 info!("tick"); 27 info!("tick");