mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 10:59:34 +01:00
don't use deprecated API
This commit is contained in:
parent
da675dc35f
commit
7aa270cb92
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue