Skip to content

Commit 84dd4e9

Browse files
Merge #473
473: Fix `rcc` example. r=burrbull a=reitermarkus Add missing `rcc` variable. Co-authored-by: Markus Reiter <[email protected]>
2 parents f11dcaa + 0c80664 commit 84dd4e9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2020
- Move hd44780-driver to dev-dependencies
2121

2222
### Fixed
23+
- Fixed RCC example.
2324
- Enable the defmt feature on fugit when the defmt feature on the
2425
crate is enabled
2526

src/rcc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//!
77
//! ```
88
//! let dp = pac::Peripherals::take().unwrap();
9+
//! let rcc = dp.RCC.constrain();
910
//! let clocks = rcc
1011
//! .cfgr
1112
//! .use_hse(8.MHz())

0 commit comments

Comments
 (0)