We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66286f4 commit 66bf45cCopy full SHA for 66bf45c
src/rcc.rs
@@ -229,6 +229,19 @@ impl CFGR {
229
while rcc.cr.read().hserdy().bit_is_clear() {}
230
}
231
232
+ if let Some(pllmul_bits) = cfg.pllmul {
233
+ // enable PLL and wait for it to be ready
234
+
235
+ #[allow(unused_unsafe)]
236
+ rcc.cfgr.modify(|_, w| unsafe {
237
+ w.pllmul().bits(pllmul_bits).pllsrc().bit(cfg.hse.is_some())
238
+ });
239
240
+ rcc.cr.modify(|_, w| w.pllon().set_bit());
241
242
+ while rcc.cr.read().pllrdy().bit_is_clear() {}
243
+ }
244
245
// set prescalers and clock source
246
#[cfg(feature = "connectivity")]
247
rcc.cfgr.modify(|_, w| unsafe {
0 commit comments