stm32: exti: update api

This commit is contained in:
xoviat
2021-03-17 20:56:48 -05:00
parent ccf2ea77f0
commit 81d99ff1a0
2 changed files with 7 additions and 26 deletions

View File

@ -22,7 +22,7 @@ pub struct ExtiPin<T: gpio::ExtiPin + WithInterrupt> {
}
impl<T: gpio::ExtiPin + WithInterrupt> ExtiPin<T> {
fn new(mut pin: T, interrupt: T::Interrupt) -> Self {
pub fn new(mut pin: T, interrupt: T::Interrupt) -> Self {
let mut syscfg: SysCfg = unsafe { mem::transmute(()) };
cortex_m::interrupt::free(|_| {