aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g4
diff options
context:
space:
mode:
authormelvdl <[email protected]>2025-06-27 01:08:45 +0200
committermelvdl <[email protected]>2025-06-27 01:08:45 +0200
commit41327c1325367177548dabc644636617274de7f4 (patch)
treeb389d87f80f0843db946635837691982e41740a0 /examples/stm32g4
parent6f88c2c73caa63a6e534130f4a064cb95d3e9d7d (diff)
stm32: adapt examples to timer API changes
Diffstat (limited to 'examples/stm32g4')
-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 6c965012c..5b4194927 100644
--- a/examples/stm32g4/src/bin/pwm.rs
+++ b/examples/stm32g4/src/bin/pwm.rs
@@ -14,7 +14,7 @@ async fn main(_spawner: Spawner) {
14 let p = embassy_stm32::init(Default::default()); 14 let p = embassy_stm32::init(Default::default());
15 info!("Hello World!"); 15 info!("Hello World!");
16 16
17 let ch1_pin = PwmPin::new_ch1(p.PC0, OutputType::PushPull); 17 let ch1_pin = PwmPin::new(p.PC0, OutputType::PushPull);
18 let mut pwm = SimplePwm::new(p.TIM1, Some(ch1_pin), None, None, None, khz(10), Default::default()); 18 let mut pwm = SimplePwm::new(p.TIM1, Some(ch1_pin), None, None, None, khz(10), Default::default());
19 let mut ch1 = pwm.ch1(); 19 let mut ch1 = pwm.ch1();
20 ch1.enable(); 20 ch1.enable();