stm32/gpio: Add Peripheral<Self> bound to Pin.

This commit is contained in:
Dario Nieuwenhuis 2022-07-23 14:28:42 +02:00
parent f02ba35482
commit 19d1ef0e29

View File

@ -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;