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