use NVIC::pend
instead of the deprecated NVIC.set_pending
This commit is contained in:
@@ -51,7 +51,7 @@ fn main() -> ! {
|
|||||||
while !syst.has_wrapped() {}
|
while !syst.has_wrapped() {}
|
||||||
|
|
||||||
// trigger the `EXTI0` interrupt
|
// trigger the `EXTI0` interrupt
|
||||||
nvic.set_pending(Interrupt::EXTI0);
|
NVIC::pend(Interrupt::EXTI0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user