diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-10-15 18:50:17 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-10-21 20:25:05 +0200 |
| commit | f96b25fdf2d7421cc16830a4ccac4ebb3e69cc5d (patch) | |
| tree | a782f21ca0659eda6b9b667e197c4927490a7bc4 /examples/periodic.rs | |
| parent | 355cb82d0693fe108ac28ec8a0d77e8aab4e6e06 (diff) | |
Updated examples
More work
Diffstat (limited to 'examples/periodic.rs')
| -rw-r--r-- | examples/periodic.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/periodic.rs b/examples/periodic.rs index 95cd145..eedf720 100644 --- a/examples/periodic.rs +++ b/examples/periodic.rs @@ -5,15 +5,15 @@ #![no_main] #![no_std] -use cortex_m_semihosting::hprintln; use panic_semihosting as _; -use rtic::cyccnt::{Instant, U32Ext}; - -const PERIOD: u32 = 8_000_000; // NOTE: does NOT work on QEMU! #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] mod app { + use cortex_m_semihosting::hprintln; + use rtic::cyccnt::{Instant, U32Ext}; + + const PERIOD: u32 = 8_000_000; #[init] fn init(cx: init::Context) -> init::LateResources { |
