diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f334/src/bin/pwm.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/stm32f334/src/bin/pwm.rs b/examples/stm32f334/src/bin/pwm.rs index cf5eb7b26..7c6d6cd71 100644 --- a/examples/stm32f334/src/bin/pwm.rs +++ b/examples/stm32f334/src/bin/pwm.rs | |||
| @@ -28,9 +28,7 @@ async fn main(_spawner: Spawner) { | |||
| 28 | config.rcc.apb1_pre = APBPrescaler::DIV2; | 28 | config.rcc.apb1_pre = APBPrescaler::DIV2; |
| 29 | config.rcc.apb2_pre = APBPrescaler::DIV1; | 29 | config.rcc.apb2_pre = APBPrescaler::DIV1; |
| 30 | 30 | ||
| 31 | // TODO: The two lines here do the same thing | 31 | config.rcc.mux.hrtim1sw = Some(embassy_stm32::rcc::mux::Timsw::PLL1_P); |
| 32 | config.rcc.hrtim = HrtimClockSource::PllClk; | ||
| 33 | config.rcc.mux.hrtim1sw = Some(embassy_stm32::pac::rcc::vals::Timsw::PLL1_P); | ||
| 34 | } | 32 | } |
| 35 | let p = embassy_stm32::init(config); | 33 | let p = embassy_stm32::init(config); |
| 36 | 34 | ||
