fix clock in l4 rng example
This commit is contained in:
parent
d90ecbbe40
commit
8f6fccf012
@ -12,12 +12,13 @@ use panic_probe as _;
|
|||||||
|
|
||||||
fn config() -> Config {
|
fn config() -> Config {
|
||||||
let mut config = Config::default();
|
let mut config = Config::default();
|
||||||
|
// 72Mhz clock (16 / 1 * 18 / 4)
|
||||||
config.rcc.mux = ClockSrc::PLL(
|
config.rcc.mux = ClockSrc::PLL(
|
||||||
PLLSource::HSI16,
|
PLLSource::HSI16,
|
||||||
PLLClkDiv::Div2,
|
PLLClkDiv::Div4,
|
||||||
PLLSrcDiv::Div1,
|
PLLSrcDiv::Div1,
|
||||||
PLLMul::Mul8,
|
PLLMul::Mul18,
|
||||||
Some(PLLClkDiv::Div2),
|
Some(PLLClkDiv::Div6), // 48Mhz (16 / 1 * 18 / 6)
|
||||||
);
|
);
|
||||||
config
|
config
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user