rp/gpio: fix wrong io _bank calc

This commit is contained in:
Andelf 2024-02-17 20:44:59 +08:00
parent 377e58e408
commit 6734f52676

View File

@ -815,7 +815,7 @@ pub(crate) mod sealed {
#[inline]
fn _bank(&self) -> Bank {
match self.pin_bank() & 0x20 {
match self.pin_bank() >> 5 {
#[cfg(feature = "qspi-as-gpio")]
1 => Bank::Qspi,
_ => Bank::Bank0,