mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
rp/gpio: fix wrong io _bank calc
This commit is contained in:
parent
377e58e408
commit
6734f52676
@ -815,7 +815,7 @@ pub(crate) mod sealed {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn _bank(&self) -> Bank {
|
fn _bank(&self) -> Bank {
|
||||||
match self.pin_bank() & 0x20 {
|
match self.pin_bank() >> 5 {
|
||||||
#[cfg(feature = "qspi-as-gpio")]
|
#[cfg(feature = "qspi-as-gpio")]
|
||||||
1 => Bank::Qspi,
|
1 => Bank::Qspi,
|
||||||
_ => Bank::Bank0,
|
_ => Bank::Bank0,
|
||||||
|
Loading…
Reference in New Issue
Block a user