Added Vcore boost mode and Flash wait state

This commit is contained in:
Carl St-Laurent
2023-06-04 11:57:42 -04:00
parent e83762e979
commit ade46489f1
2 changed files with 37 additions and 2 deletions

View File

@ -13,8 +13,8 @@ use {defmt_rtt as _, panic_probe as _};
async fn main(_spawner: Spawner) {
let mut config = Config::default();
// Configure PLL to 128Mhz frequency
config.rcc.mux = ClockSrc::PLL(PllSrc::HSI16, PllM::Div4, PllN::Mul64, PllClkDiv::Div2);
// Configure PLL to max frequency of 170 MHz
config.rcc.mux = ClockSrc::PLL(PllSrc::HSI16, PllM::Div4, PllN::Mul85, PllClkDiv::Div2);
let _p = embassy_stm32::init(config);
info!("Hello World!");