From 61b1d4e18889fa0c6238fe2d5758e2276a62c590 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 8 Nov 2020 19:05:34 +0100 Subject: [PATCH] Fix build for nrfs with 32 gpios --- embassy-nrf/src/gpiote.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}; 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};