diff options
| author | Dario Nieuwenhuis <[email protected]> | 2020-11-08 19:05:34 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2020-11-08 19:05:34 +0100 |
| commit | 61b1d4e18889fa0c6238fe2d5758e2276a62c590 (patch) | |
| tree | 74d5a76d43fbba03d679b560326e56a5a87613c9 | |
| parent | e539cd32ca36c10c7c1918dde04ee123aadf752d (diff) | |
Fix build for nrfs with 32 gpios
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 9bd4a0a90..2b1ca40b1 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs | |||
| @@ -7,7 +7,9 @@ use crate::hal::gpio::{Input, Level, Output, Pin, Port}; | |||
| 7 | use crate::interrupt; | 7 | use crate::interrupt; |
| 8 | use crate::pac::generic::Reg; | 8 | use crate::pac::generic::Reg; |
| 9 | use crate::pac::gpiote::_TASKS_OUT; | 9 | use crate::pac::gpiote::_TASKS_OUT; |
| 10 | use crate::pac::{p0 as gpio, GPIOTE, P0, P1}; | 10 | #[cfg(any(feature = "52833", feature = "52840"))] |
| 11 | use crate::pac::P1; | ||
| 12 | use crate::pac::{p0 as gpio, GPIOTE, P0}; | ||
| 11 | 13 | ||
| 12 | #[cfg(not(feature = "51"))] | 14 | #[cfg(not(feature = "51"))] |
| 13 | use crate::pac::gpiote::{_TASKS_CLR, _TASKS_SET}; | 15 | use crate::pac::gpiote::{_TASKS_CLR, _TASKS_SET}; |
