diff options
Diffstat (limited to 'embassy-stm32/src/gpio.rs')
| -rw-r--r-- | embassy-stm32/src/gpio.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 214813a42..81cb09b24 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs | |||
| @@ -661,6 +661,11 @@ pub(crate) trait SealedPin { | |||
| 661 | self.set_as_analog(); | 661 | self.set_as_analog(); |
| 662 | } | 662 | } |
| 663 | 663 | ||
| 664 | /// Sets the speed of the output pin. | ||
| 665 | /// | ||
| 666 | /// This should never be called for AFType::Input on the STM32F1 series, since MODE and | ||
| 667 | /// CNF bits are not independent. If the CNF bits are altered afterwards as well, this | ||
| 668 | /// will put the pin into output mode. | ||
| 664 | #[inline] | 669 | #[inline] |
| 665 | fn set_speed(&self, speed: Speed) { | 670 | fn set_speed(&self, speed: Speed) { |
| 666 | let pin = self._pin() as usize; | 671 | let pin = self._pin() as usize; |
