aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g0/src/bin/hf_timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32g0/src/bin/hf_timer.rs')
-rw-r--r--examples/stm32g0/src/bin/hf_timer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32g0/src/bin/hf_timer.rs b/examples/stm32g0/src/bin/hf_timer.rs
index 78a779e29..3f63d0dfd 100644
--- a/examples/stm32g0/src/bin/hf_timer.rs
+++ b/examples/stm32g0/src/bin/hf_timer.rs
@@ -5,7 +5,7 @@ use defmt::info;
5use embassy_executor::Spawner; 5use embassy_executor::Spawner;
6use embassy_stm32::gpio::OutputType; 6use embassy_stm32::gpio::OutputType;
7use embassy_stm32::pac::rcc::vals::Tim1sel; 7use embassy_stm32::pac::rcc::vals::Tim1sel;
8use embassy_stm32::rcc::{ClockSrc, Config as RccConfig, PllConfig, PllSource, Pllm, Plln, Pllq, Pllr}; 8use embassy_stm32::rcc::{Config as RccConfig, PllConfig, PllSource, Pllm, Plln, Pllq, Pllr, Sysclk};
9use embassy_stm32::time::khz; 9use embassy_stm32::time::khz;
10use embassy_stm32::timer::complementary_pwm::{ComplementaryPwm, ComplementaryPwmPin}; 10use embassy_stm32::timer::complementary_pwm::{ComplementaryPwm, ComplementaryPwmPin};
11use embassy_stm32::timer::simple_pwm::PwmPin; 11use embassy_stm32::timer::simple_pwm::PwmPin;
@@ -16,7 +16,7 @@ use {defmt_rtt as _, panic_probe as _};
16#[embassy_executor::main] 16#[embassy_executor::main]
17async fn main(_spawner: Spawner) { 17async fn main(_spawner: Spawner) {
18 let mut rcc_config = RccConfig::default(); 18 let mut rcc_config = RccConfig::default();
19 rcc_config.mux = ClockSrc::PLL(PllConfig { 19 rcc_config.sys = Sysclk::PLL(PllConfig {
20 source: PllSource::HSI, 20 source: PllSource::HSI,
21 m: Pllm::DIV1, 21 m: Pllm::DIV1,
22 n: Plln::MUL16, 22 n: Plln::MUL16,