don't use deprecated API

This commit is contained in:
Jorge Aparicio 2019-09-15 18:36:00 +02:00
parent da675dc35f
commit 7aa270cb92
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ pub fn codegen(
// NOTE unmask the interrupt *after* setting its priority: changing the priority of a pended
// interrupt is implementation defined
stmts.push(quote!(core.NVIC.enable(#device::#interrupt::#name);));
stmts.push(quote!(rtfm::export::NVIC::unmask(#device::#interrupt::#name);));
}
// cross-spawn barriers: now that priorities have been set and the interrupts have been unmasked

View file

@ -9,7 +9,7 @@ pub use cortex_m::register::basepri;
pub use cortex_m::{
asm::wfi,
interrupt,
peripheral::{scb::SystemHandler, syst::SystClkSource, DWT},
peripheral::{scb::SystemHandler, syst::SystClkSource, DWT, NVIC},
Peripherals,
};
use heapless::spsc::{MultiCore, SingleCore};