aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g4/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/stm32g4/src
parent561126b0d6068d189477af18461bf1e467532516 (diff)
Fix examples
Diffstat (limited to 'examples/stm32g4/src')
-rw-r--r--examples/stm32g4/src/bin/pwm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g4/src/bin/pwm.rs b/examples/stm32g4/src/bin/pwm.rs
index 01e9cb476..c62b11d13 100644
--- a/examples/stm32g4/src/bin/pwm.rs
+++ b/examples/stm32g4/src/bin/pwm.rs
@@ -17,7 +17,7 @@ async fn main(_spawner: Spawner) {
17 info!("Hello World!"); 17 info!("Hello World!");
18 18
19 let ch1 = PwmPin::new_ch1(p.PC0, OutputType::PushPull); 19 let ch1 = PwmPin::new_ch1(p.PC0, OutputType::PushPull);
20 let mut pwm = SimplePwm::new(p.TIM1, Some(ch1), None, None, None, khz(10)); 20 let mut pwm = SimplePwm::new(p.TIM1, Some(ch1), None, None, None, khz(10), Default::default());
21 let max = pwm.get_max_duty(); 21 let max = pwm.get_max_duty();
22 pwm.enable(Channel::Ch1); 22 pwm.enable(Channel::Ch1);
23 23