aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorQuentin Smith <[email protected]>2022-08-16 01:47:18 -0400
committerQuentin Smith <[email protected]>2022-08-16 01:47:18 -0400
commit7dfe119fe0c7b99d7a6d73af6ac3fc6f7cef9d12 (patch)
tree7e03da4c23e66e33440eecede94a9398814bb33c /examples
parentcd561b19ef411c296c86afc6f0df4f39caa1c9e9 (diff)
Run cargo fmt
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf/src/bin/rtos_trace.rs12
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;
7use embassy_executor::executor::Spawner; 7use embassy_executor::executor::Spawner;
8use embassy_executor::time::{Duration, Instant, Timer}; 8use embassy_executor::time::{Duration, Instant, Timer};
9use embassy_nrf::Peripherals; 9use embassy_nrf::Peripherals;
10 10#[cfg(feature = "log")]
11use log::*;
12use 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
13use rtos_trace; 14use rtos_trace;
14use systemview_target::SystemView; 15use systemview_target::SystemView;
15use panic_probe as _;
16#[cfg(feature = "log")]
17use log::*;
18 16
19static LOGGER: systemview_target::SystemView = systemview_target::SystemView::new(); 17static LOGGER: systemview_target::SystemView = systemview_target::SystemView::new();
20rtos_trace::global_trace!{SystemView} 18rtos_trace::global_trace! {SystemView}
21 19
22struct TraceInfo(); 20struct TraceInfo();
23 21
@@ -27,7 +25,7 @@ impl rtos_trace::RtosTraceApplicationCallbacks for TraceInfo {
27 64000000 25 64000000
28 } 26 }
29} 27}
30rtos_trace::global_application_callbacks!{TraceInfo} 28rtos_trace::global_application_callbacks! {TraceInfo}
31 29
32#[embassy_executor::task] 30#[embassy_executor::task]
33async fn run1() { 31async fn run1() {