fix fmt & revert small change

This commit is contained in:
Bruno Bousquet 2024-05-31 22:08:37 -04:00
parent ff71784baa
commit 254ea3a2a9
2 changed files with 2 additions and 3 deletions

View File

@ -327,7 +327,7 @@ impl<T: CoreInstance> interrupt::typelevel::Handler<T::UpdateInterrupt> for Inte
#[cfg(feature = "low-power")]
crate::low_power::on_wakeup_irq();
let regs = crate::pac::timer::TimGp16::from_ptr(T::regs());
let regs = crate::pac::timer::TimCore::from_ptr(T::regs());
// Read TIM interrupt flags.
let sr = regs.sr().read();

View File

@ -4,8 +4,7 @@ use embassy_hal_internal::into_ref;
use super::ll_async::TimerEventFuture;
use super::low_level::{CountingMode, InputCaptureMode, InputTISelection, SlaveMode, Timer, TriggerSource};
use super::InterruptHandler;
use super::{Channel, Channel1Pin, Channel2Pin, GeneralInstance4Channel};
use super::{Channel, Channel1Pin, Channel2Pin, GeneralInstance4Channel, InterruptHandler};
use crate::gpio::{AFType, Pull};
use crate::interrupt::typelevel::{Binding, Interrupt};
use crate::time::Hertz;