diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-12-16 23:02:28 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-16 23:02:28 +0000 |
| commit | cade3b5396fc91e41551d6a95d3393523c730c90 (patch) | |
| tree | 7704cccd0eb7f69f259e66546b63994ab855ac78 /embassy-nrf/src/gpiote.rs | |
| parent | 4e3e4f44c29d6a5ef93d646b0ae4acc861f1f72e (diff) | |
| parent | 4ae93d42e884bbd5386d09463a2f14f36881a803 (diff) | |
Merge pull request #5088 from oddlama/fix-nrf54-pin-count
fix: use correct pin count for the nrf54 chip family
Diffstat (limited to 'embassy-nrf/src/gpiote.rs')
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 1f6000b13..6b9d2d1da 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs | |||
| @@ -29,17 +29,14 @@ const CHANNEL_COUNT: usize = 12; | |||
| 29 | /// Max channels per port | 29 | /// Max channels per port |
| 30 | const CHANNELS_PER_PORT: usize = 8; | 30 | const CHANNELS_PER_PORT: usize = 8; |
| 31 | 31 | ||
| 32 | #[cfg(any( | 32 | #[cfg(any(feature = "nrf52833", feature = "nrf52840", feature = "_nrf5340"))] |
| 33 | feature = "nrf52833", | ||
| 34 | feature = "nrf52840", | ||
| 35 | feature = "_nrf5340", | ||
| 36 | feature = "_nrf54l15", | ||
| 37 | feature = "_nrf54l10", | ||
| 38 | feature = "_nrf54l05" | ||
| 39 | ))] | ||
| 40 | const PIN_COUNT: usize = 48; | 33 | const PIN_COUNT: usize = 48; |
| 34 | #[cfg(any(feature = "_nrf54l15", feature = "_nrf54l10", feature = "_nrf54l05"))] | ||
| 35 | // Highest pin index is P2.10 => (2 * 32 + 10) = 74 | ||
| 36 | const PIN_COUNT: usize = 75; | ||
| 41 | #[cfg(feature = "_nrf54lm20")] | 37 | #[cfg(feature = "_nrf54lm20")] |
| 42 | const PIN_COUNT: usize = 66; | 38 | // Highest pin index is P3.12 => (3 * 32 + 12) = 108 |
| 39 | const PIN_COUNT: usize = 109; | ||
| 43 | #[cfg(not(any( | 40 | #[cfg(not(any( |
| 44 | feature = "nrf52833", | 41 | feature = "nrf52833", |
| 45 | feature = "nrf52840", | 42 | feature = "nrf52840", |
