fix the tasks! macro

NVIC.set_priority now requires unsafe
This commit is contained in:
Jorge Aparicio 2017-04-12 10:16:56 -05:00
parent 67881bc7f5
commit d9300f01f8

View file

@ -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,
);
}
}
}
)*