diff options
Diffstat (limited to 'embassy-nrf/src/gpio.rs')
| -rw-r--r-- | embassy-nrf/src/gpio.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/embassy-nrf/src/gpio.rs b/embassy-nrf/src/gpio.rs index ab5e7ed4b..43d1b9cb2 100644 --- a/embassy-nrf/src/gpio.rs +++ b/embassy-nrf/src/gpio.rs | |||
| @@ -5,10 +5,10 @@ use core::convert::Infallible; | |||
| 5 | use core::hint::unreachable_unchecked; | 5 | use core::hint::unreachable_unchecked; |
| 6 | 6 | ||
| 7 | use cfg_if::cfg_if; | 7 | use cfg_if::cfg_if; |
| 8 | use embassy_hal_internal::{impl_peripheral, Peri, PeripheralType}; | 8 | use embassy_hal_internal::{Peri, PeripheralType, impl_peripheral}; |
| 9 | 9 | ||
| 10 | use crate::pac; | 10 | use crate::pac; |
| 11 | use crate::pac::common::{Reg, RW}; | 11 | use crate::pac::common::{RW, Reg}; |
| 12 | use crate::pac::gpio; | 12 | use crate::pac::gpio; |
| 13 | use crate::pac::gpio::vals; | 13 | use crate::pac::gpio::vals; |
| 14 | #[cfg(not(feature = "_nrf51"))] | 14 | #[cfg(not(feature = "_nrf51"))] |
| @@ -585,7 +585,6 @@ impl SealedPin for AnyPin { | |||
| 585 | // ==================== | 585 | // ==================== |
| 586 | 586 | ||
| 587 | #[cfg(not(feature = "_nrf51"))] | 587 | #[cfg(not(feature = "_nrf51"))] |
| 588 | #[cfg_attr(feature = "_nrf54l", allow(unused))] // TODO | ||
| 589 | pub(crate) trait PselBits { | 588 | pub(crate) trait PselBits { |
| 590 | fn psel_bits(&self) -> pac::shared::regs::Psel; | 589 | fn psel_bits(&self) -> pac::shared::regs::Psel; |
| 591 | } | 590 | } |
| @@ -602,7 +601,6 @@ impl<'a, P: Pin> PselBits for Option<Peri<'a, P>> { | |||
| 602 | } | 601 | } |
| 603 | 602 | ||
| 604 | #[cfg(not(feature = "_nrf51"))] | 603 | #[cfg(not(feature = "_nrf51"))] |
| 605 | #[cfg_attr(feature = "_nrf54l", allow(unused))] // TODO | ||
| 606 | pub(crate) const DISCONNECTED: Psel = Psel(1 << 31); | 604 | pub(crate) const DISCONNECTED: Psel = Psel(1 << 31); |
| 607 | 605 | ||
| 608 | #[cfg(not(feature = "_nrf51"))] | 606 | #[cfg(not(feature = "_nrf51"))] |
