Skip to content
Snippets Groups Projects
Commit e18eb961 authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

fix unused variable warning around interrupt::free

parent 17b252a8
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) { ...@@ -75,7 +75,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
Kind::Exception => { Kind::Exception => {
if exceptions.is_empty() { if exceptions.is_empty() {
exceptions.push(quote! { exceptions.push(quote! {
let scb = #device::SCB.borrow(cs); let scb = #device::SCB.borrow(_cs);
}); });
} }
...@@ -89,7 +89,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) { ...@@ -89,7 +89,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
Kind::Interrupt { enabled } => { Kind::Interrupt { enabled } => {
if interrupts.is_empty() { if interrupts.is_empty() {
interrupts.push(quote! { interrupts.push(quote! {
let nvic = #device::NVIC.borrow(cs); let nvic = #device::NVIC.borrow(_cs);
}); });
} }
...@@ -118,7 +118,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) { ...@@ -118,7 +118,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
// type check // type check
let init: fn(init::Peripherals, init::Resources) = #init; let init: fn(init::Peripherals, init::Resources) = #init;
#krate::atomic(|cs| unsafe { #krate::atomic(|_cs| unsafe {
init(init::Peripherals::all(), init::Resources::new()); init(init::Peripherals::all(), init::Resources::new());
#(#exceptions)* #(#exceptions)*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment