use NVIC::pend

instead of the deprecated NVIC.set_pending
This commit is contained in:
Jorge Aparicio
2018-11-10 00:02:00 +01:00
parent f7a943f480
commit e64e690512

View File

@@ -51,7 +51,7 @@ fn main() -> ! {
while !syst.has_wrapped() {}
// trigger the `EXTI0` interrupt
nvic.set_pending(Interrupt::EXTI0);
NVIC::pend(Interrupt::EXTI0);
}
}