mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-02-22 03:43:50 +00:00
fix fmt & revert small change
This commit is contained in:
parent
ff71784baa
commit
254ea3a2a9
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user