mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
fix examples
This commit is contained in:
parent
a64df2e2a2
commit
5c0cbacdd1
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user