mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 12:20:37 +00:00
examples/stm32: fix g0 hftimer example with hsi sys_div
This commit is contained in:
parent
b40d30f0ac
commit
083f584f29
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user