fix examples

This commit is contained in:
Bruno Bousquet 2024-06-29 09:58:37 -04:00
parent a64df2e2a2
commit 5c0cbacdd1
3 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ use super::ll_async::TimerEventFuture;
use super::low_level::{CountingMode, InputCaptureMode, InputTISelection, SlaveMode, Timer, TriggerSource};
use super::{Channel, Channel1Pin, Channel2Pin, GeneralInstance4Channel};
use crate::gpio::{AfType, Pull};
use crate::interrupt::typelevel::Interrupt;
use crate::time::Hertz;
use crate::Peripheral;

View File

@ -38,7 +38,7 @@ async fn main(spawner: Spawner) {
unwrap!(spawner.spawn(blinky(p.PC13.degrade())));
let mut pwm_input = PwmInput::new(p.TIM2, p.PA0, Pull::None, Irqs, khz(10));
let mut pwm_input = PwmInput::new(p.TIM2, p.PA0, Pull::None, khz(10));
pwm_input.enable();
loop {

View File

@ -38,7 +38,7 @@ async fn main(spawner: Spawner) {
unwrap!(spawner.spawn(blinky(p.PB2.degrade())));
let mut pwm_input = PwmInput::new(p.TIM3, p.PA6, Pull::None, Irqs, khz(10));
let mut pwm_input = PwmInput::new(p.TIM3, p.PA6, Pull::None, khz(10));
pwm_input.enable();
loop {