Merge pull request #2015 from willglynn/stm32u5_faster_clocks

stm32: u5: implement >55 MHz clock speeds
This commit is contained in:
Dario Nieuwenhuis
2023-10-06 23:38:15 +00:00
committed by GitHub
2 changed files with 274 additions and 93 deletions

View File

@ -23,7 +23,12 @@ async fn main(_spawner: Spawner) {
info!("Hello World!");
let mut config = Config::default();
config.rcc.mux = ClockSrc::PLL1R(PllSrc::HSI16, PllM::Div2, PllN::Mul10, PllClkDiv::NotDivided);
config.rcc.mux = ClockSrc::PLL1R(PllConfig {
source: PllSrc::HSI16,
m: PllM::Div2,
n: PllN::Mul10,
r: PllClkDiv::NotDivided,
});
//config.rcc.mux = ClockSrc::MSI(MSIRange::Range48mhz);
config.rcc.hsi48 = true;