aboutsummaryrefslogtreecommitdiff
path: root/examples/schedule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/schedule.rs')
-rw-r--r--examples/schedule.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs
index fa67a566..f57f53f5 100644
--- a/examples/schedule.rs
+++ b/examples/schedule.rs
@@ -5,14 +5,15 @@
#![no_main]
#![no_std]
-use cortex_m::peripheral::DWT;
-use cortex_m_semihosting::hprintln;
use panic_halt as _;
-use rtic::cyccnt::{Instant, U32Ext as _};
// NOTE: does NOT work on QEMU!
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
mod app {
+ use cortex_m::peripheral::DWT;
+ use cortex_m_semihosting::hprintln;
+ use rtic::cyccnt::{Instant, U32Ext as _};
+
#[init()]
fn init(mut cx: init::Context) -> init::LateResources {
// Initialize (enable) the monotonic timer (CYCCNT)