stm32: exti: remove static mut

This commit is contained in:
xoviat 2021-03-17 20:14:29 -05:00
parent 7743c8305b
commit 739c47cc33
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ impl<'a> ExtiManager {
Self { syscfg } Self { syscfg }
} }
pub fn new_pin<T>(&'static mut self, mut pin: T, interrupt: T::Interrupt) -> ExtiPin<T> pub fn new_pin<T>(&'static self, mut pin: T, interrupt: T::Interrupt) -> ExtiPin<T>
where where
T: HalExtiPin + WithInterrupt, T: HalExtiPin + WithInterrupt,
{ {

View File

@ -22,7 +22,7 @@ impl<'a> ExtiManager {
Self { syscfg } Self { syscfg }
} }
pub fn new_pin<T>(&'static mut self, pin: T, interrupt: T::Interrupt) -> ExtiPin<T> pub fn new_pin<T>(&'static self, pin: T, interrupt: T::Interrupt) -> ExtiPin<T>
where where
T: PinWithInterrupt, T: PinWithInterrupt,
{ {