diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-04-02 04:35:06 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-02 04:35:06 +0200 |
| commit | 82803bffdab0842bf6c3e4bce21131d437b06669 (patch) | |
| tree | 588c65c93b31b897f53d389f7876dc2703eb0fa8 /examples/nrf/src/bin/raw_spawn.rs | |
| parent | a9e63167e1ec230ca3d28da771378f5f4936a840 (diff) | |
Use embassy/defmt-timestamp-uptime in all examples.
Diffstat (limited to 'examples/nrf/src/bin/raw_spawn.rs')
| -rw-r--r-- | examples/nrf/src/bin/raw_spawn.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/nrf/src/bin/raw_spawn.rs b/examples/nrf/src/bin/raw_spawn.rs index d0bd68674..1d9d3ed51 100644 --- a/examples/nrf/src/bin/raw_spawn.rs +++ b/examples/nrf/src/bin/raw_spawn.rs | |||
| @@ -1,18 +1,17 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | 3 | ||
| 4 | #[path = "../example_common.rs"] | ||
| 5 | mod example_common; | ||
| 6 | use example_common::*; | ||
| 7 | |||
| 8 | use core::mem; | 4 | use core::mem; |
| 9 | use cortex_m_rt::entry; | 5 | use cortex_m_rt::entry; |
| 10 | 6 | use defmt::{info, unwrap}; | |
| 11 | use embassy::executor::raw::TaskStorage; | 7 | use embassy::executor::raw::TaskStorage; |
| 12 | use embassy::executor::Executor; | 8 | use embassy::executor::Executor; |
| 13 | use embassy::time::{Duration, Timer}; | 9 | use embassy::time::{Duration, Timer}; |
| 14 | use embassy::util::Forever; | 10 | use embassy::util::Forever; |
| 15 | 11 | ||
| 12 | use defmt_rtt as _; // global logger | ||
| 13 | use panic_probe as _; | ||
| 14 | |||
| 16 | async fn run1() { | 15 | async fn run1() { |
| 17 | loop { | 16 | loop { |
| 18 | info!("BIG INFREQUENT TICK"); | 17 | info!("BIG INFREQUENT TICK"); |
