aboutsummaryrefslogtreecommitdiff
path: root/examples/types.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2021-04-07 11:09:21 +0200
committerEmil Fresk <emil.fresk@gmail.com>2021-04-07 11:09:21 +0200
commitae691952c328757113047bf696e934316789b844 (patch)
treeb307f1cf929c1946f696f58f84c5165326002c5b /examples/types.rs
parent3adda3c7664b92e0a14ceb446a2082933647ba52 (diff)
Updated dwt-systick-monotonic
Diffstat (limited to 'examples/types.rs')
-rw-r--r--examples/types.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/types.rs b/examples/types.rs
index ff7deb8..cdcf80c 100644
--- a/examples/types.rs
+++ b/examples/types.rs
@@ -10,13 +10,10 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965, peripherals = true, dispatchers = [SSI0])]
mod app {
use cortex_m_semihosting::debug;
- use dwt_systick_monotonic::{
- consts::{U0, U8},
- DwtSystick,
- };
+ use dwt_systick_monotonic::DwtSystick;
#[monotonic(binds = SysTick, default = true)]
- type MyMono = DwtSystick<U8, U0, U0>; // 8 MHz
+ type MyMono = DwtSystick<8_000_000>; // 8 MHz
#[resources]
struct Resources {