diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-06-13 23:56:59 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-06-13 23:56:59 +0200 |
| commit | 81275bfa4f41e2066770087f3a33cad4227eab41 (patch) | |
| tree | c779a68e7cecf4c2613c7593376f980cea5dbc05 /examples/periodic.rs | |
| parent | fafeeb27270ef24fc3852711c6032f65aa7dbcc0 (diff) | |
rtfm-syntax refactor + heterogeneous multi-core support
Diffstat (limited to 'examples/periodic.rs')
| -rw-r--r-- | examples/periodic.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/periodic.rs b/examples/periodic.rs index f784118..b8910db 100644 --- a/examples/periodic.rs +++ b/examples/periodic.rs @@ -5,15 +5,14 @@ #![no_main] #![no_std] -extern crate panic_semihosting; - use cortex_m_semihosting::hprintln; -use rtfm::Instant; +use panic_semihosting as _; +use rtfm::cyccnt::{Instant, U32Ext}; const PERIOD: u32 = 8_000_000; // NOTE: does NOT work on QEMU! -#[rtfm::app(device = lm3s6965)] +#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)] const APP: () = { #[init(schedule = [foo])] fn init(c: init::Context) { |
