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/double_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/double_schedule.rs')
| -rw-r--r-- | examples/double_schedule.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/double_schedule.rs b/examples/double_schedule.rs index 403f358..9da57ae 100644 --- a/examples/double_schedule.rs +++ b/examples/double_schedule.rs @@ -9,14 +9,11 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { - 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) { |
