diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index ae369004..d36d4a29 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs @@ -223,11 +223,6 @@ pub trait Pin: sealed::Pin + Sized { self._port() } - #[inline] - fn psel_bits(&self) -> u32 { - self.pin_port() as u32 - } - /// Convert from concrete pin type PX_XX to type erased `AnyPin`. #[inline] fn degrade(self) -> AnyPin { @@ -277,11 +272,6 @@ pub trait OptionalPin: sealed::OptionalPin + Sized { fn pin(&self) -> Option<&Self::Pin>; fn pin_mut(&mut self) -> Option<&mut Self::Pin>; - #[inline] - fn psel_bits(&self) -> u32 { - self.pin().map_or(1u32 << 31, |pin| Pin::psel_bits(pin)) - } - /// Convert from concrete pin type PX_XX to type erased `Option`. #[inline] fn degrade_optional(mut self) -> Option {