diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 9bd4a0a9..2b1ca40b 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}; use crate::interrupt; use crate::pac::generic::Reg; use crate::pac::gpiote::_TASKS_OUT; -use crate::pac::{p0 as gpio, GPIOTE, P0, P1}; +#[cfg(any(feature = "52833", feature = "52840"))] +use crate::pac::P1; +use crate::pac::{p0 as gpio, GPIOTE, P0}; #[cfg(not(feature = "51"))] use crate::pac::gpiote::{_TASKS_CLR, _TASKS_SET};