mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +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
|
// NOTE unmask the interrupt *after* setting its priority: changing the priority of a pended
|
||||||
// interrupt is implementation defined
|
// 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
|
// 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::{
|
pub use cortex_m::{
|
||||||
asm::wfi,
|
asm::wfi,
|
||||||
interrupt,
|
interrupt,
|
||||||
peripheral::{scb::SystemHandler, syst::SystClkSource, DWT},
|
peripheral::{scb::SystemHandler, syst::SystClkSource, DWT, NVIC},
|
||||||
Peripherals,
|
Peripherals,
|
||||||
};
|
};
|
||||||
use heapless::spsc::{MultiCore, SingleCore};
|
use heapless::spsc::{MultiCore, SingleCore};
|
||||||
|
|
Loading…
Reference in a new issue