Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit e64e690

Browse files
committed
use NVIC::pend
instead of the deprecated NVIC.set_pending
1 parent f7a943f commit e64e690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> ! {
5151
while !syst.has_wrapped() {}
5252

5353
// trigger the `EXTI0` interrupt
54-
nvic.set_pending(Interrupt::EXTI0);
54+
NVIC::pend(Interrupt::EXTI0);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)