We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30aa5ce + 48eb5fe commit b162517Copy full SHA for b162517
CHANGELOG.md
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
14
### Fixed
15
16
+- Fix wrong frequency reported by `MonoTimer`
17
+- Fix wrong timings generated by `Timer::syst`
18
- Fix period retrieval for timers
19
20
### Changed
src/time.rs
@@ -241,7 +241,7 @@ impl MonoTimer {
241
drop(dwt);
242
243
MonoTimer {
244
- frequency: clocks.sysclk(),
+ frequency: clocks.hclk(),
245
}
246
247
src/timer.rs
@@ -163,7 +163,7 @@ impl Timer<SYST> {
163
syst.set_clock_source(SystClkSource::Core);
164
Self {
165
tim: syst,
166
- clk: clocks.sysclk(),
+ clk: clocks.hclk(),
167
168
169
0 commit comments