stm32/gpio: Add Peripheral<Self> bound to Pin.
This commit is contained in:
parent
f02ba35482
commit
19d1ef0e29
@ -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")]
|
#[cfg(feature = "exti")]
|
||||||
type ExtiChannel: crate::exti::Channel;
|
type ExtiChannel: crate::exti::Channel;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user