Skip to content

Commit 083f584

Browse files
committed
examples/stm32: fix g0 hftimer example with hsi sys_div
1 parent b40d30f commit 083f584

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/stm32g0/src/bin/hf_timer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ async fn main(_spawner: Spawner) {
1616
let mut config = PeripheralConfig::default();
1717
{
1818
use embassy_stm32::rcc::*;
19-
config.rcc.hsi = true;
19+
config.rcc.hsi = Some(Hsi {
20+
sys_div: HsiSysDiv::DIV1,
21+
});
2022
config.rcc.pll = Some(Pll {
2123
source: PllSource::HSI,
2224
prediv: PllPreDiv::DIV1,

0 commit comments

Comments
 (0)