diff options
| author | xoviat <[email protected]> | 2023-06-30 18:33:22 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-06-30 18:33:22 -0500 |
| commit | 6e13f5b387d8f0f948b5874bc300925b015947d9 (patch) | |
| tree | 1c62b80f11c357013702560d8c37421366eb4662 /examples | |
| parent | c07854fed8f6ba38d418ef63853769a9af109bff (diff) | |
rustfmt
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 20a621372..1b5d509e7 100644 --- a/examples/stm32f334/src/bin/pwm.rs +++ b/examples/stm32f334/src/bin/pwm.rs | |||
| @@ -5,9 +5,7 @@ | |||
| 5 | use defmt::*; | 5 | use defmt::*; |
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_stm32::pwm::advanced_pwm::*; | 7 | use embassy_stm32::pwm::advanced_pwm::*; |
| 8 | use embassy_stm32::pwm::Channel; | ||
| 9 | use embassy_stm32::time::khz; | 8 | use embassy_stm32::time::khz; |
| 10 | use embassy_time::{Duration, Timer}; | ||
| 11 | use {defmt_rtt as _, panic_probe as _}; | 9 | use {defmt_rtt as _, panic_probe as _}; |
| 12 | 10 | ||
| 13 | #[embassy_executor::main] | 11 | #[embassy_executor::main] |
| @@ -17,7 +15,7 @@ async fn main(_spawner: Spawner) { | |||
| 17 | 15 | ||
| 18 | let ch1 = PwmPin::new_cha(p.PA8); | 16 | let ch1 = PwmPin::new_cha(p.PA8); |
| 19 | let ch1n = ComplementaryPwmPin::new_cha(p.PA9); | 17 | let ch1n = ComplementaryPwmPin::new_cha(p.PA9); |
| 20 | let mut pwm = AdvancedPwm::new( | 18 | let pwm = AdvancedPwm::new( |
| 21 | p.HRTIM1, | 19 | p.HRTIM1, |
| 22 | Some(ch1), | 20 | Some(ch1), |
| 23 | Some(ch1n), | 21 | Some(ch1n), |
