aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruno Bousquet <[email protected]>2024-05-29 09:14:05 -0400
committerGitHub <[email protected]>2024-05-29 09:14:05 -0400
commita23fa8dcb2e22ed2d8bac15fd875dfe53af43eda (patch)
tree2a81baa9d8164366c6d264de0bde97e4b3515509 /examples
parent7f4803ddaf8f6eeeec45418f23b092bff95222d2 (diff)
Apply suggestions from code review
Co-authored-by: Romain Reignier <[email protected]>
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32f1/src/bin/input_capture.rs2
-rw-r--r--examples/stm32f1/src/bin/pwm_input.rs2
-rw-r--r--examples/stm32f4/src/bin/pwm_input.rs2
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};
11use embassy_time::Timer; 11use embassy_time::Timer;
12use {defmt_rtt as _, panic_probe as _}; 12use {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]
17async fn blinky(led: peripherals::PC13) { 17async 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};
11use embassy_time::Timer; 11use embassy_time::Timer;
12use {defmt_rtt as _, panic_probe as _}; 12use {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]
17async fn blinky(led: peripherals::PB2) { 17async fn blinky(led: peripherals::PB2) {