mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-01 14:20:33 +00:00
Merge pull request #2590 from andelf/fix/rp-io-bank
rp: Fix wrong io _bank calc
This commit is contained in:
commit
c7e3eca98c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user