File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
#![ no_std]
3
3
#![ feature( type_alias_impl_trait) ]
4
4
5
+ //Add this to Cargo.toml if you want to use SysTick as monotonic timer
6
+ //[dependencies.rtic-monotonics]
7
+ //version = "2.0"
8
+ //features = ["cortex-m-systick"]
9
+
5
10
use defmt_rtt as _;
6
11
use panic_probe as _;
7
12
use rtic_time:: Monotonic ;
@@ -12,7 +17,8 @@ use stm32f4xx_hal::{
12
17
} ;
13
18
type Mono = stm32f4xx_hal:: timer:: MonoTimerUs < pac:: TIM3 > ;
14
19
15
- // Uncomment if use SysTick as monotonic timer
20
+ // To use SysTick as monotonic timer, uncomment the lines below
21
+ // *and* remove the Mono type alias above
16
22
//use rtic_monotonics::systick::prelude::*;
17
23
//systick_monotonic!(Mono, 1000);
18
24
@@ -59,8 +65,3 @@ mod app {
59
65
}
60
66
}
61
67
}
62
-
63
- //Add this to Cargo.toml if use SysTick as monotonic timer
64
- //[dependencies.rtic-monotonics]
65
- //version = "2.0"
66
- //features = ["cortex-m-systick"]
You can’t perform that action at this time.
0 commit comments