adapt to changes in the cortex-m crate

This commit is contained in:
Jorge Aparicio 2018-01-11 20:56:45 +01:00
parent dd12a6a14d
commit 1be43fc489
11 changed files with 69 additions and 42 deletions

View file

@ -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(());
});
}