diff --git a/CHANGELOG.md b/CHANGELOG.md index b1d40d97..02678782 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix wrong frequency reported by `MonoTimer` - Fix period retrieval for timers ### Changed @@ -22,6 +23,7 @@ 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/time.rs b/src/time.rs index 6d37382b..e69439eb 100644 --- a/src/time.rs +++ b/src/time.rs @@ -241,7 +241,7 @@ impl MonoTimer { drop(dwt); MonoTimer { - frequency: clocks.sysclk(), + frequency: clocks.hclk(), } }