From 19d1ef0e29fdd0bf0407cbe37c388e8a87e7ddfe Mon Sep 17 00:00:00 2001
From: Dario Nieuwenhuis <dirbaio@dirbaio.net>
Date: Sat, 23 Jul 2022 14:28:42 +0200
Subject: [PATCH] stm32/gpio: Add Peripheral<Self> bound to Pin.

---
 embassy-stm32/src/gpio.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 {
     }
 }
 
-pub trait Pin: Into<AnyPin> + sealed::Pin + Sized + 'static {
+pub trait Pin: Peripheral<P = Self> + Into<AnyPin> + sealed::Pin + Sized + 'static {
     #[cfg(feature = "exti")]
     type ExtiChannel: crate::exti::Channel;