diff --git a/CHANGELOG.md b/CHANGELOG.md index 02678782..f9d60dc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fix wrong frequency reported by `MonoTimer` +- Fix wrong timings generated by `Timer::syst` - Fix period retrieval for timers ### Changed @@ -23,7 +24,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Improve `SPI` documentation - Improve `RCC` and `AFIO` register documentation - ## [v0.6.0] - 2020-06-06 ### Breaking changes diff --git a/src/timer.rs b/src/timer.rs index d60239f4..840bee7c 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -163,7 +163,7 @@ impl Timer { syst.set_clock_source(SystClkSource::Core); Self { tim: syst, - clk: clocks.sysclk(), + clk: clocks.hclk(), } }