diff options
| author | Süha Ünüvar <[email protected]> | 2025-06-27 09:25:24 +0800 |
|---|---|---|
| committer | Süha Ünüvar <[email protected]> | 2025-06-27 09:25:24 +0800 |
| commit | b31a423eea6998ee681eda49433edc5dd03a5c63 (patch) | |
| tree | 6f04881ea66b93ccdd6a2d0daf62be6d18cc6688 /examples/stm32g0 | |
| parent | 5cbc9a235f806bc961ed58da34ed932e39646e29 (diff) | |
fix examples
Diffstat (limited to 'examples/stm32g0')
| -rw-r--r-- | examples/stm32g0/src/bin/pwm_input.rs | 2 |
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 { |
