diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f1/src/bin/input_capture.rs | 2 | ||||
| -rw-r--r-- | examples/stm32f1/src/bin/pwm_input.rs | 2 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/pwm_input.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32f1/src/bin/input_capture.rs b/examples/stm32f1/src/bin/input_capture.rs index 417830231..5e2dab9e6 100644 --- a/examples/stm32f1/src/bin/input_capture.rs +++ b/examples/stm32f1/src/bin/input_capture.rs | |||
| @@ -43,7 +43,7 @@ async fn main(spawner: Spawner) { | |||
| 43 | let mut ic = InputCapture::new(p.TIM2, None, None, Some(ch3), None, Irqs, khz(1000), Default::default()); | 43 | let mut ic = InputCapture::new(p.TIM2, None, None, Some(ch3), None, Irqs, khz(1000), Default::default()); |
| 44 | 44 | ||
| 45 | loop { | 45 | loop { |
| 46 | info!("wait for risign edge"); | 46 | info!("wait for rising edge"); |
| 47 | ic.wait_for_rising_edge(Channel::Ch3).await; | 47 | ic.wait_for_rising_edge(Channel::Ch3).await; |
| 48 | 48 | ||
| 49 | let capture_value = ic.get_capture_value(Channel::Ch3); | 49 | let capture_value = ic.get_capture_value(Channel::Ch3); |
diff --git a/examples/stm32f1/src/bin/pwm_input.rs b/examples/stm32f1/src/bin/pwm_input.rs index c051d1328..de6949eb4 100644 --- a/examples/stm32f1/src/bin/pwm_input.rs +++ b/examples/stm32f1/src/bin/pwm_input.rs | |||
| @@ -11,7 +11,7 @@ use embassy_stm32::{bind_interrupts, peripherals, timer}; | |||
| 11 | use embassy_time::Timer; | 11 | use embassy_time::Timer; |
| 12 | use {defmt_rtt as _, panic_probe as _}; | 12 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 13 | ||
| 14 | /// Connect PB2 and PB10 with a 1k Ohm resistor | 14 | /// Connect PA0 and PC13 with a 1k Ohm resistor |
| 15 | 15 | ||
| 16 | #[embassy_executor::task] | 16 | #[embassy_executor::task] |
| 17 | async fn blinky(led: peripherals::PC13) { | 17 | async fn blinky(led: peripherals::PC13) { |
diff --git a/examples/stm32f4/src/bin/pwm_input.rs b/examples/stm32f4/src/bin/pwm_input.rs index eb1e7cb87..30cefac3a 100644 --- a/examples/stm32f4/src/bin/pwm_input.rs +++ b/examples/stm32f4/src/bin/pwm_input.rs | |||
| @@ -11,7 +11,7 @@ use embassy_stm32::{bind_interrupts, peripherals, timer}; | |||
| 11 | use embassy_time::Timer; | 11 | use embassy_time::Timer; |
| 12 | use {defmt_rtt as _, panic_probe as _}; | 12 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 13 | ||
| 14 | /// Connect PB2 and PB10 with a 1k Ohm resistor | 14 | /// Connect PB2 and PA6 with a 1k Ohm resistor |
| 15 | 15 | ||
| 16 | #[embassy_executor::task] | 16 | #[embassy_executor::task] |
| 17 | async fn blinky(led: peripherals::PB2) { | 17 | async fn blinky(led: peripherals::PB2) { |
