Skip to content

Commit 0c80664

Browse files
committed
Fix rcc example.
1 parent 5d324ab commit 0c80664

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
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1919
- Move hd44780-driver to dev-dependencies
2020

2121
### Fixed
22+
- Fixed RCC example.
2223
- Enable the defmt feature on fugit when the defmt feature on the
2324
crate is enabled
2425

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)