aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7/src
diff options
context:
space:
mode:
authorDion Dokter <[email protected]>2023-10-01 23:39:53 +0200
committerDion Dokter <[email protected]>2023-10-01 23:39:53 +0200
commit05a9b113165dd1b124e7a0ac6462b6850bebedf2 (patch)
treee7706fab015898207cda874480212d270f69dda3 /examples/stm32h7/src
parent561126b0d6068d189477af18461bf1e467532516 (diff)
Fix examples
Diffstat (limited to 'examples/stm32h7/src')
-rw-r--r--examples/stm32h7/src/bin/pwm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/pwm.rs b/examples/stm32h7/src/bin/pwm.rs
index 5c8e57aa2..84e7df267 100644
--- a/examples/stm32h7/src/bin/pwm.rs
+++ b/examples/stm32h7/src/bin/pwm.rs
@@ -39,7 +39,7 @@ async fn main(_spawner: Spawner) {
39 info!("Hello World!"); 39 info!("Hello World!");
40 40
41 let ch1 = PwmPin::new_ch1(p.PA6, OutputType::PushPull); 41 let ch1 = PwmPin::new_ch1(p.PA6, OutputType::PushPull);
42 let mut pwm = SimplePwm::new(p.TIM3, Some(ch1), None, None, None, khz(10)); 42 let mut pwm = SimplePwm::new(p.TIM3, Some(ch1), None, None, None, khz(10), Default::default());
43 let max = pwm.get_max_duty(); 43 let max = pwm.get_max_duty();
44 pwm.enable(Channel::Ch1); 44 pwm.enable(Channel::Ch1);
45 45