From e63c4bde0b6e4f2f2a58efb3a698bffec66ebc70 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 15 May 2021 02:45:58 +0200 Subject: [PATCH] stm32: remove psel_bits --- embassy-stm32/src/gpio.rs | 10 ---------- 1 file changed, 10 deletions(-) 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 {