aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6d8d366..dfc5e52 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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,
+ );
+ }
}
}
)*