mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-26 03:49:34 +01:00
fix unused variable warning around interrupt::free
This commit is contained in:
parent
17b252a8b6
commit
e18eb9610e
1 changed files with 3 additions and 3 deletions
|
@ -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>) {
|
||||||
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>) {
|
||||||
// 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)*
|
||||||
|
|
Loading…
Reference in a new issue