We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9509f3 commit 47bb5fdCopy full SHA for 47bb5fd
src/gpio.rs
@@ -570,6 +570,11 @@ where
570
Mode: marker::Active,
571
{
572
/// NVIC interrupt number of interrupt from this pin
573
+ ///
574
+ /// Used to unmask / enable the interrupt with [`cortex_m::peripheral::NVIC::unmask()`].
575
+ /// This is also useful for all other [`cortex_m::peripheral::NVIC`] functions.
576
+ // TODO(Sh3rm4n): It would be cool to have this either const or have a const function.
577
+ // But this is currenlty not possible, because index() is runtime defined.
578
pub fn nvic(&self) -> Interrupt {
579
match self.index.index() {
580
0 => Interrupt::EXTI0,
0 commit comments