examples/stm32: fix g0 hftimer example with hsi sys_div

This commit is contained in:
Markus Kasten 2025-01-17 12:45:05 +01:00
parent b40d30f0ac
commit 083f584f29

View File

@ -16,7 +16,9 @@ async fn main(_spawner: Spawner) {
let mut config = PeripheralConfig::default();
{
use embassy_stm32::rcc::*;
config.rcc.hsi = true;
config.rcc.hsi = Some(Hsi {
sys_div: HsiSysDiv::DIV1,
});
config.rcc.pll = Some(Pll {
source: PllSource::HSI,
prediv: PllPreDiv::DIV1,