diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-03-29 03:00:48 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-03-29 03:00:48 +0200 |
| commit | d7c3a38efceacbd5a326c84c6e0bbef44b06e97c (patch) | |
| tree | 710b6553a45b99719288ab9de9084e0a93554cee /embassy-nrf-examples/src/bin/timer.rs | |
| parent | d5ab02792c5489668bd399ac094900f5e26b3420 (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.rs | 6 |
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; | |||
| 10 | use example_common::*; | 10 | use example_common::*; |
| 11 | 11 | ||
| 12 | use defmt::panic; | 12 | use defmt::panic; |
| 13 | use embassy::executor::{task, Spawner}; | 13 | use embassy::executor::Spawner; |
| 14 | use embassy::time::{Duration, Timer}; | 14 | use embassy::time::{Duration, Timer}; |
| 15 | 15 | ||
| 16 | #[task] | 16 | #[embassy::task] |
| 17 | async fn run1() { | 17 | async 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] |
| 25 | async fn run2() { | 25 | async fn run2() { |
| 26 | loop { | 26 | loop { |
| 27 | info!("tick"); | 27 | info!("tick"); |
