aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-30 18:33:22 -0500
committerxoviat <[email protected]>2023-06-30 18:33:22 -0500
commit6e13f5b387d8f0f948b5874bc300925b015947d9 (patch)
tree1c62b80f11c357013702560d8c37421366eb4662 /examples
parentc07854fed8f6ba38d418ef63853769a9af109bff (diff)
rustfmt
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32f334/src/bin/pwm.rs4
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 @@
5use defmt::*; 5use defmt::*;
6use embassy_executor::Spawner; 6use embassy_executor::Spawner;
7use embassy_stm32::pwm::advanced_pwm::*; 7use embassy_stm32::pwm::advanced_pwm::*;
8use embassy_stm32::pwm::Channel;
9use embassy_stm32::time::khz; 8use embassy_stm32::time::khz;
10use embassy_time::{Duration, Timer};
11use {defmt_rtt as _, panic_probe as _}; 9use {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),