Apply suggestions from code review
Co-authored-by: Romain Reignier <romainreignier@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ async fn main(spawner: Spawner) {
|
||||
let mut ic = InputCapture::new(p.TIM2, None, None, Some(ch3), None, Irqs, khz(1000), Default::default());
|
||||
|
||||
loop {
|
||||
info!("wait for risign edge");
|
||||
info!("wait for rising edge");
|
||||
ic.wait_for_rising_edge(Channel::Ch3).await;
|
||||
|
||||
let capture_value = ic.get_capture_value(Channel::Ch3);
|
||||
|
||||
@@ -11,7 +11,7 @@ use embassy_stm32::{bind_interrupts, peripherals, timer};
|
||||
use embassy_time::Timer;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
/// Connect PB2 and PB10 with a 1k Ohm resistor
|
||||
/// Connect PA0 and PC13 with a 1k Ohm resistor
|
||||
|
||||
#[embassy_executor::task]
|
||||
async fn blinky(led: peripherals::PC13) {
|
||||
|
||||
Reference in New Issue
Block a user