Skip to content

Commit

Permalink
Minor modifications due to pac updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Feb 16, 2024
1 parent 6154529 commit 2c46a9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rp2040-hal/src/gpio/pin/pin_sealed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ macro_rules! accessor_fns {
DynBankId::Bank0 => {
let bank = &*$crate::pac::IO_BANK0::PTR;
match proc {
CoreId::Core0 => &bank.[<proc0_ $reg:lower>](usize::from(index)),
CoreId::Core0 => bank.[<proc0_ $reg:lower>](usize::from(index)),
CoreId::Core1 => core::mem::transmute(&bank.[<proc1_ $reg:lower>](usize::from(index))),
}
}
Expand All @@ -111,7 +111,7 @@ macro_rules! accessor_fns {
let reg = match pin.bank {
DynBankId::Bank0 => {
let bank = &*$crate::pac::IO_BANK0::PTR;
&bank.[< dormant_wake_ $reg:lower>](usize::from(index))
bank.[< dormant_wake_ $reg:lower>](usize::from(index))
}
DynBankId::Qspi => {
let bank = &*$crate::pac::IO_QSPI::PTR;
Expand Down Expand Up @@ -183,7 +183,7 @@ where
let reg = match pin.bank {
DynBankId::Bank0 => {
let bank = &*pac::IO_BANK0::PTR;
&bank.intr(usize::from(index))
bank.intr(usize::from(index))
}
DynBankId::Qspi => {
let bank = &*pac::IO_QSPI::PTR;
Expand Down

0 comments on commit 2c46a9f

Please sign in to comment.