diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-05-15 02:45:58 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-05-15 03:07:59 +0200 |
| commit | e63c4bde0b6e4f2f2a58efb3a698bffec66ebc70 (patch) | |
| tree | 2878cc306cfee9be707014284f97eec36cf35dee | |
| parent | 8bb1bc3507efad5c2ffb41985fe37ccebc63e410 (diff) | |
stm32: remove psel_bits
| -rw-r--r-- | embassy-stm32/src/gpio.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index ae3690044..d36d4a29d 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs | |||
| @@ -223,11 +223,6 @@ pub trait Pin: sealed::Pin + Sized { | |||
| 223 | self._port() | 223 | self._port() |
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | #[inline] | ||
| 227 | fn psel_bits(&self) -> u32 { | ||
| 228 | self.pin_port() as u32 | ||
| 229 | } | ||
| 230 | |||
| 231 | /// Convert from concrete pin type PX_XX to type erased `AnyPin`. | 226 | /// Convert from concrete pin type PX_XX to type erased `AnyPin`. |
| 232 | #[inline] | 227 | #[inline] |
| 233 | fn degrade(self) -> AnyPin { | 228 | fn degrade(self) -> AnyPin { |
| @@ -277,11 +272,6 @@ pub trait OptionalPin: sealed::OptionalPin + Sized { | |||
| 277 | fn pin(&self) -> Option<&Self::Pin>; | 272 | fn pin(&self) -> Option<&Self::Pin>; |
| 278 | fn pin_mut(&mut self) -> Option<&mut Self::Pin>; | 273 | fn pin_mut(&mut self) -> Option<&mut Self::Pin>; |
| 279 | 274 | ||
| 280 | #[inline] | ||
| 281 | fn psel_bits(&self) -> u32 { | ||
| 282 | self.pin().map_or(1u32 << 31, |pin| Pin::psel_bits(pin)) | ||
| 283 | } | ||
| 284 | |||
| 285 | /// Convert from concrete pin type PX_XX to type erased `Option<AnyPin>`. | 275 | /// Convert from concrete pin type PX_XX to type erased `Option<AnyPin>`. |
| 286 | #[inline] | 276 | #[inline] |
| 287 | fn degrade_optional(mut self) -> Option<AnyPin> { | 277 | fn degrade_optional(mut self) -> Option<AnyPin> { |
