diff options
Diffstat (limited to 'examples/stm32g0/src/bin/input_capture.rs')
| -rw-r--r-- | examples/stm32g0/src/bin/input_capture.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32g0/src/bin/input_capture.rs b/examples/stm32g0/src/bin/input_capture.rs index bc814cb13..08df4e043 100644 --- a/examples/stm32g0/src/bin/input_capture.rs +++ b/examples/stm32g0/src/bin/input_capture.rs | |||
| @@ -16,14 +16,14 @@ use embassy_stm32::time::khz; | |||
| 16 | use embassy_stm32::timer::input_capture::{CapturePin, InputCapture}; | 16 | use embassy_stm32::timer::input_capture::{CapturePin, InputCapture}; |
| 17 | use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; | 17 | use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; |
| 18 | use embassy_stm32::timer::Channel; | 18 | use embassy_stm32::timer::Channel; |
| 19 | use embassy_stm32::{bind_interrupts, peripherals, timer}; | 19 | use embassy_stm32::{bind_interrupts, peripherals, timer, Peri}; |
| 20 | use embassy_time::Timer; | 20 | use embassy_time::Timer; |
| 21 | use {defmt_rtt as _, panic_probe as _}; | 21 | use {defmt_rtt as _, panic_probe as _}; |
| 22 | 22 | ||
| 23 | // Connect PB1 and PA6 with a 1k Ohm resistor | 23 | // Connect PB1 and PA6 with a 1k Ohm resistor |
| 24 | 24 | ||
| 25 | #[embassy_executor::task] | 25 | #[embassy_executor::task] |
| 26 | async fn blinky(led: peripherals::PB1) { | 26 | async fn blinky(led: Peri<'static, peripherals::PB1>) { |
| 27 | let mut led = Output::new(led, Level::High, Speed::Low); | 27 | let mut led = Output::new(led, Level::High, Speed::Low); |
| 28 | 28 | ||
| 29 | loop { | 29 | loop { |
