diff options
| author | Quentin Smith <[email protected]> | 2022-08-16 01:47:18 -0400 |
|---|---|---|
| committer | Quentin Smith <[email protected]> | 2022-08-16 01:47:18 -0400 |
| commit | 7dfe119fe0c7b99d7a6d73af6ac3fc6f7cef9d12 (patch) | |
| tree | 7e03da4c23e66e33440eecede94a9398814bb33c /examples | |
| parent | cd561b19ef411c296c86afc6f0df4f39caa1c9e9 (diff) | |
Run cargo fmt
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf/src/bin/rtos_trace.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/nrf/src/bin/rtos_trace.rs b/examples/nrf/src/bin/rtos_trace.rs index 461e174c9..5699fe8e2 100644 --- a/examples/nrf/src/bin/rtos_trace.rs +++ b/examples/nrf/src/bin/rtos_trace.rs | |||
| @@ -7,17 +7,15 @@ use core::task::Poll; | |||
| 7 | use embassy_executor::executor::Spawner; | 7 | use embassy_executor::executor::Spawner; |
| 8 | use embassy_executor::time::{Duration, Instant, Timer}; | 8 | use embassy_executor::time::{Duration, Instant, Timer}; |
| 9 | use embassy_nrf::Peripherals; | 9 | use embassy_nrf::Peripherals; |
| 10 | 10 | #[cfg(feature = "log")] | |
| 11 | use log::*; | ||
| 12 | use panic_probe as _; | ||
| 11 | // N.B. systemview_target cannot be used at the same time as defmt_rtt. | 13 | // N.B. systemview_target cannot be used at the same time as defmt_rtt. |
| 12 | |||
| 13 | use rtos_trace; | 14 | use rtos_trace; |
| 14 | use systemview_target::SystemView; | 15 | use systemview_target::SystemView; |
| 15 | use panic_probe as _; | ||
| 16 | #[cfg(feature = "log")] | ||
| 17 | use log::*; | ||
| 18 | 16 | ||
| 19 | static LOGGER: systemview_target::SystemView = systemview_target::SystemView::new(); | 17 | static LOGGER: systemview_target::SystemView = systemview_target::SystemView::new(); |
| 20 | rtos_trace::global_trace!{SystemView} | 18 | rtos_trace::global_trace! {SystemView} |
| 21 | 19 | ||
| 22 | struct TraceInfo(); | 20 | struct TraceInfo(); |
| 23 | 21 | ||
| @@ -27,7 +25,7 @@ impl rtos_trace::RtosTraceApplicationCallbacks for TraceInfo { | |||
| 27 | 64000000 | 25 | 64000000 |
| 28 | } | 26 | } |
| 29 | } | 27 | } |
| 30 | rtos_trace::global_application_callbacks!{TraceInfo} | 28 | rtos_trace::global_application_callbacks! {TraceInfo} |
| 31 | 29 | ||
| 32 | #[embassy_executor::task] | 30 | #[embassy_executor::task] |
| 33 | async fn run1() { | 31 | async fn run1() { |
