diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-07 12:01:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-07 12:01:18 +0000 |
| commit | 6c8257bb73de0f68072467447692a1f7dff555f9 (patch) | |
| tree | 815ee7267e0661532f9c3ad13021b5293efd994f /examples/schedule.rs | |
| parent | 3c86d713a6f8fdb052de80380a17468090e42624 (diff) | |
| parent | ae691952c328757113047bf696e934316789b844 (diff) | |
Merge #456
456: Cancel/reschedule support for monotonics r=AfoHT a=korken89
Design document: https://hackmd.io/lhUCzrKBS-66aadO4KsSzw?view
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'examples/schedule.rs')
| -rw-r--r-- | examples/schedule.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs index d6d4499..b89e519 100644 --- a/examples/schedule.rs +++ b/examples/schedule.rs @@ -11,14 +11,11 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { use cortex_m_semihosting::hprintln; - use dwt_systick_monotonic::{ - consts::{U0, U8}, - DwtSystick, - }; + use dwt_systick_monotonic::DwtSystick; use rtic::time::duration::Seconds; #[monotonic(binds = SysTick, default = true)] - type MyMono = DwtSystick<U8, U0, U0>; // 8 MHz + type MyMono = DwtSystick<8_000_000>; // 8 MHz #[init()] fn init(cx: init::Context) -> (init::LateResources, init::Monotonics) { |
