Skip to content

Commit 00b2aa6

Browse files
committed
Fix frequencies in rcc doc example
1 parent 78456de commit 00b2aa6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/rcc.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@
4343
//! // needed to configure specific peripherals.
4444
//! // Looking at the peripheral function parameters
4545
//! // should give more insight, which peripheral clock is needed.
46-
//! .pclk1(16.mhz())
47-
//! .pclk2(16.mhz())
46+
//! .pclk1(12.mhz())
47+
//! .pclk2(12.mhz())
4848
//! // Freeze / apply the configuration and setup all clocks
49-
//! .freeze(&mut flash.acr)
49+
//! .freeze(&mut flash.acr);
5050
//! # }
51-
//!
5251
//! ```
52+
//!
53+
//! All fields can be omitted and will internally be set to a calculated default.
54+
//! For more details read the documentation of the [`CFGR`] methods to
55+
//! find out how to setup the clock.
5356
5457
use crate::pac::{
5558
rcc::{self, cfgr, cfgr2},

0 commit comments

Comments
 (0)