Skip to content

Commit

Permalink
Fix Timer::syst
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoq2 committed Jun 24, 2020
1 parent 8a69f77 commit 48eb5fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl Timer<SYST> {
syst.set_clock_source(SystClkSource::Core);
Self {
tim: syst,
clk: clocks.sysclk(),
clk: clocks.hclk(),
}
}

Expand Down

0 comments on commit 48eb5fe

Please sign in to comment.