From 042d234f1149f5b9d17fea601c74043b1800760c Mon Sep 17 00:00:00 2001 From: nerwalt Date: Mon, 15 Jul 2024 09:23:58 -0600 Subject: [PATCH] Putting never used/constucted items behind feature flag --- embassy-nrf/src/gpiote.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 5366de3f0..948eea5de 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs @@ -117,6 +117,7 @@ fn GPIOTE() { unsafe { handle_gpiote_interrupt() }; } +#[cfg(not(any(feature = "_nrf9120")))] unsafe fn handle_gpiote_interrupt() { let g = regs(); @@ -166,10 +167,10 @@ unsafe fn handle_gpiote_interrupt() { } } -#[cfg(not(feature = "_nrf51"))] +#[cfg(not(any(feature = "_nrf51", feature = "_nrf9120")))] struct BitIter(u32); -#[cfg(not(feature = "_nrf51"))] +#[cfg(not(any(feature = "_nrf51", feature = "_nrf9120")))] impl Iterator for BitIter { type Item = u32;