diff options
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -319,10 +319,12 @@ macro_rules! tasks { { let hw = $crate::$P::hw(); if hw != 0 { - _nvic.set_priority - (::$krate::interrupt::Interrupt::$Interrupt, - hw, - ); + unsafe { + _nvic.set_priority + (::$krate::interrupt::Interrupt::$Interrupt, + hw, + ); + } } } )* |
