aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g0/src/bin
diff options
context:
space:
mode:
authorSüha Ünüvar <[email protected]>2025-06-27 09:25:24 +0800
committerSüha Ünüvar <[email protected]>2025-06-27 09:25:24 +0800
commitb31a423eea6998ee681eda49433edc5dd03a5c63 (patch)
tree6f04881ea66b93ccdd6a2d0daf62be6d18cc6688 /examples/stm32g0/src/bin
parent5cbc9a235f806bc961ed58da34ed932e39646e29 (diff)
fix examples
Diffstat (limited to 'examples/stm32g0/src/bin')
-rw-r--r--examples/stm32g0/src/bin/pwm_input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g0/src/bin/pwm_input.rs b/examples/stm32g0/src/bin/pwm_input.rs
index dc2428607..fd4f53f1e 100644
--- a/examples/stm32g0/src/bin/pwm_input.rs
+++ b/examples/stm32g0/src/bin/pwm_input.rs
@@ -47,7 +47,7 @@ async fn main(spawner: Spawner) {
47 pwm.ch1().set_duty_cycle_fraction(1, 4); 47 pwm.ch1().set_duty_cycle_fraction(1, 4);
48 pwm.ch1().enable(); 48 pwm.ch1().enable();
49 49
50 let mut pwm_input = PwmInput::new(p.TIM2, p.PA0, Pull::None, khz(1000)); 50 let mut pwm_input = PwmInput::new_ch1(p.TIM2, p.PA0, Pull::None, khz(1000));
51 pwm_input.enable(); 51 pwm_input.enable();
52 52
53 loop { 53 loop {