diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-12 10:16:56 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-12 10:16:56 -0500 |
| commit | d9300f01f8caf619c65de15f2bbe76672bde9980 (patch) | |
| tree | dc41b77acdefea68f50546af9685ce611fb464ee | |
| parent | 67881bc7f552a58a2a373fc3b7f59f5775d3eaec (diff) | |
fix the tasks! macro
NVIC.set_priority now requires unsafe
| -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, + ); + } } } )* |
