mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
fix the tasks! macro
NVIC.set_priority now requires unsafe
This commit is contained in:
parent
67881bc7f5
commit
d9300f01f8
1 changed files with 6 additions and 4 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -319,10 +319,12 @@ macro_rules! tasks {
|
||||||
{
|
{
|
||||||
let hw = $crate::$P::hw();
|
let hw = $crate::$P::hw();
|
||||||
if hw != 0 {
|
if hw != 0 {
|
||||||
_nvic.set_priority
|
unsafe {
|
||||||
(::$krate::interrupt::Interrupt::$Interrupt,
|
_nvic.set_priority
|
||||||
hw,
|
(::$krate::interrupt::Interrupt::$Interrupt,
|
||||||
);
|
hw,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
|
|
Loading…
Reference in a new issue