diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-02-18 17:53:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-18 17:53:59 +0000 |
| commit | c7e3eca98c11f4624b0c5204da4a2c425c191745 (patch) | |
| tree | 507845d2fbe9be3f0ac309e92b3e5164f6210dac | |
| parent | e7af0f7f0010d391e7c926e785d5f3e923e0107c (diff) | |
| parent | 6734f52676a9669586492f6c203c10f354f6cf04 (diff) | |
Merge pull request #2590 from andelf/fix/rp-io-bank
rp: Fix wrong io _bank calc
| -rw-r--r-- | embassy-rp/src/gpio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index a121a8036..62eeb4cf6 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs | |||
| @@ -815,7 +815,7 @@ pub(crate) mod sealed { | |||
| 815 | 815 | ||
| 816 | #[inline] | 816 | #[inline] |
| 817 | fn _bank(&self) -> Bank { | 817 | fn _bank(&self) -> Bank { |
| 818 | match self.pin_bank() & 0x20 { | 818 | match self.pin_bank() >> 5 { |
| 819 | #[cfg(feature = "qspi-as-gpio")] | 819 | #[cfg(feature = "qspi-as-gpio")] |
| 820 | 1 => Bank::Qspi, | 820 | 1 => Bank::Qspi, |
| 821 | _ => Bank::Bank0, | 821 | _ => Bank::Bank0, |
