fix the tasks! macro
NVIC.set_priority now requires unsafe
@@ -319,12 +319,14 @@ macro_rules! tasks {
{
let hw = $crate::$P::hw();
if hw != 0 {
+ unsafe {
_nvic.set_priority
(::$krate::interrupt::Interrupt::$Interrupt,
hw,
);
}
}
+ }
)*
// TODO freeze the NVIC.IPR register using the MPU, if available
