diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-22 16:48:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 16:48:56 +0000 |
| commit | 9fb5a223cb8adb01381650b66eab28ea5abc98ed (patch) | |
| tree | 357983fd15ba52ea221f20b5cb14b96783d07d51 /examples/periodic.rs | |
| parent | 6de4f1a797c81aec6c24f47872e5d3968344684c (diff) | |
| parent | 17e976ab495234f9f53f56e6693850af077cf701 (diff) | |
Merge #396
396: Fix namespaces r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
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 { |
