diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-01-17 16:19:27 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-17 16:19:27 +0000 |
| commit | c39076724f052fed6781b056bb79c9fa576b87a3 (patch) | |
| tree | 15580a7500f92fe4702efcdacda0e257b566d1be /examples/stm32g0 | |
| parent | 169f9c27aa33a279aad51a92b52fc047a54b82af (diff) | |
| parent | 083f584f29b092a68f99120373dc6ec60fe6bc3d (diff) | |
Merge pull request #3781 from markus-k/stm32g0-hsisysdiv
stm32/rcc: add HSISYS support for g0
Diffstat (limited to 'examples/stm32g0')
| -rw-r--r-- | examples/stm32g0/src/bin/hf_timer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stm32g0/src/bin/hf_timer.rs b/examples/stm32g0/src/bin/hf_timer.rs index 3ea06cdee..dfb6e0edc 100644 --- a/examples/stm32g0/src/bin/hf_timer.rs +++ b/examples/stm32g0/src/bin/hf_timer.rs | |||
| @@ -16,7 +16,9 @@ async fn main(_spawner: Spawner) { | |||
| 16 | let mut config = PeripheralConfig::default(); | 16 | let mut config = PeripheralConfig::default(); |
| 17 | { | 17 | { |
| 18 | use embassy_stm32::rcc::*; | 18 | use embassy_stm32::rcc::*; |
| 19 | config.rcc.hsi = true; | 19 | config.rcc.hsi = Some(Hsi { |
| 20 | sys_div: HsiSysDiv::DIV1, | ||
| 21 | }); | ||
| 20 | config.rcc.pll = Some(Pll { | 22 | config.rcc.pll = Some(Pll { |
| 21 | source: PllSource::HSI, | 23 | source: PllSource::HSI, |
| 22 | prediv: PllPreDiv::DIV1, | 24 | prediv: PllPreDiv::DIV1, |
