File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
14
14
### Fixed
15
15
16
+ - Fix wrong frequency reported by ` MonoTimer `
17
+ - Fix wrong timings generated by ` Timer::syst `
16
18
- Fix period retrieval for timers
17
19
18
20
### Changed
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ impl MonoTimer {
241
241
drop ( dwt) ;
242
242
243
243
MonoTimer {
244
- frequency : clocks. sysclk ( ) ,
244
+ frequency : clocks. hclk ( ) ,
245
245
}
246
246
}
247
247
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ impl Timer<SYST> {
163
163
syst. set_clock_source ( SystClkSource :: Core ) ;
164
164
Self {
165
165
tim : syst,
166
- clk : clocks. sysclk ( ) ,
166
+ clk : clocks. hclk ( ) ,
167
167
}
168
168
}
169
169
You can’t perform that action at this time.
0 commit comments