diff options
| author | Gerzain Mata <[email protected]> | 2025-07-25 20:05:45 -0700 |
|---|---|---|
| committer | Gerzain Mata <[email protected]> | 2025-07-25 20:05:45 -0700 |
| commit | ee42deaab71b102ee2272f2db80a6509b98916e7 (patch) | |
| tree | a379c9fd8702683ae253d6f80e8ad469266e1f3d /examples | |
| parent | bc41e5e2fc1aceb946c8d4eb67f26a14b86278c5 (diff) | |
WIP changes
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32wba/src/bin/pwm.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/stm32wba/src/bin/pwm.rs b/examples/stm32wba/src/bin/pwm.rs index 54d223d34..fc1e0ff2d 100644 --- a/examples/stm32wba/src/bin/pwm.rs +++ b/examples/stm32wba/src/bin/pwm.rs | |||
| @@ -5,7 +5,7 @@ use defmt::*; | |||
| 5 | use defmt_rtt as _; // global logger | 5 | use defmt_rtt as _; // global logger |
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_stm32::gpio::OutputType; | 7 | use embassy_stm32::gpio::OutputType; |
| 8 | use embassy_stm32::rcc::{mux, AHB5Prescaler, AHBPrescaler, APBPrescaler, Sysclk, VoltageScale}; | 8 | use embassy_stm32::rcc::{AHB5Prescaler, AHBPrescaler, APBPrescaler, Sysclk, VoltageScale}; |
| 9 | use embassy_stm32::rcc::{PllDiv, PllMul, PllPreDiv, PllSource}; | 9 | use embassy_stm32::rcc::{PllDiv, PllMul, PllPreDiv, PllSource}; |
| 10 | use embassy_stm32::time::khz; | 10 | use embassy_stm32::time::khz; |
| 11 | use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; | 11 | use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; |
| @@ -38,8 +38,6 @@ async fn main(_spawner: Spawner) { | |||
| 38 | 38 | ||
| 39 | // voltage scale for max performance | 39 | // voltage scale for max performance |
| 40 | config.rcc.voltage_scale = VoltageScale::RANGE1; | 40 | config.rcc.voltage_scale = VoltageScale::RANGE1; |
| 41 | // route PLL1_P into the USB‐OTG‐HS block | ||
| 42 | config.rcc.mux.otghssel = mux::Otghssel::PLL1_P; | ||
| 43 | config.rcc.sys = Sysclk::PLL1_R; | 41 | config.rcc.sys = Sysclk::PLL1_R; |
| 44 | 42 | ||
| 45 | let p = embassy_stm32::init(config); | 43 | let p = embassy_stm32::init(config); |
