mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 13:55:23 +01:00
adapt to changes in the cortex-m crate
This commit is contained in:
parent
dd12a6a14d
commit
1be43fc489
11 changed files with 69 additions and 42 deletions
|
|
@ -370,10 +370,10 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
|
|||
});
|
||||
}
|
||||
Kind::Interrupt { enabled } => {
|
||||
// Interrupt. These can be enabled / disabled through the NVIC
|
||||
// Interrupt. These are enabled / disabled through the NVIC
|
||||
if interrupts.is_empty() {
|
||||
interrupts.push(quote! {
|
||||
let nvic = &*#device::NVIC::ptr();
|
||||
let mut nvic: #device::NVIC = core::mem::transmute(());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue