Merge pull request #2590 from andelf/fix/rp-io-bank

rp: Fix wrong io _bank calc
This commit is contained in:
Dario Nieuwenhuis 2024-02-18 17:53:59 +00:00 committed by GitHub
commit c7e3eca98c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,