aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-07-23 14:28:42 +0200
committerDario Nieuwenhuis <[email protected]>2022-07-23 14:28:42 +0200
commit19d1ef0e29fdd0bf0407cbe37c388e8a87e7ddfe (patch)
tree7ac2c489684edf53e1a9c4e8a071a80152c50677
parentf02ba35482790a54067978cde923867de3dc52a2 (diff)
stm32/gpio: Add Peripheral<Self> bound to Pin.
-rw-r--r--embassy-stm32/src/gpio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs
index bdb18187c..3c4cdb887 100644
--- a/embassy-stm32/src/gpio.rs
+++ b/embassy-stm32/src/gpio.rs
@@ -621,7 +621,7 @@ pub(crate) mod sealed {
621 } 621 }
622} 622}
623 623
624pub trait Pin: Into<AnyPin> + sealed::Pin + Sized + 'static { 624pub trait Pin: Peripheral<P = Self> + Into<AnyPin> + sealed::Pin + Sized + 'static {
625 #[cfg(feature = "exti")] 625 #[cfg(feature = "exti")]
626 type ExtiChannel: crate::exti::Channel; 626 type ExtiChannel: crate::exti::Channel;
627 627