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/stm32f4 | |
| parent | 5cbc9a235f806bc961ed58da34ed932e39646e29 (diff) | |
fix examples
Diffstat (limited to 'examples/stm32f4')
| -rw-r--r-- | examples/stm32f4/src/bin/pwm_input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/pwm_input.rs b/examples/stm32f4/src/bin/pwm_input.rs index 465cbe4f5..74167cbf2 100644 --- a/examples/stm32f4/src/bin/pwm_input.rs +++ b/examples/stm32f4/src/bin/pwm_input.rs | |||
| @@ -38,7 +38,7 @@ async fn main(spawner: Spawner) { | |||
| 38 | 38 | ||
| 39 | unwrap!(spawner.spawn(blinky(p.PB2))); | 39 | unwrap!(spawner.spawn(blinky(p.PB2))); |
| 40 | 40 | ||
| 41 | let mut pwm_input = PwmInput::new(p.TIM3, p.PA6, Pull::None, khz(10)); | 41 | let mut pwm_input = PwmInput::new_ch1(p.TIM3, p.PA6, Pull::None, khz(10)); |
| 42 | pwm_input.enable(); | 42 | pwm_input.enable(); |
| 43 | 43 | ||
| 44 | loop { | 44 | loop { |
