Skip to content

Commit a6113f4

Browse files
committed
Accept any pin in AnyPin
1 parent 0892077 commit a6113f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp-hal/src/gpio/any_pin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl<'d> AnyPin<'d> {
2727
#[inline]
2828
pub fn new<P>(pin: impl crate::peripheral::Peripheral<P = P> + 'd) -> Self
2929
where
30-
P: OutputPin + InputPin,
30+
P: Pin,
3131
{
3232
crate::into_ref!(pin);
3333
let pin = pin.degrade_internal(private::Internal);
@@ -44,7 +44,7 @@ impl<'d> AnyPin<'d> {
4444
#[inline]
4545
pub fn new_inverted<P>(pin: impl crate::peripheral::Peripheral<P = P> + 'd) -> Self
4646
where
47-
P: OutputPin + InputPin,
47+
P: Pin,
4848
{
4949
crate::into_ref!(pin);
5050
let pin = pin.degrade_internal(private::Internal);
@@ -214,7 +214,7 @@ impl<'d> AnyInputOnlyPin<'d> {
214214
#[inline]
215215
pub fn new<P>(pin: impl crate::peripheral::Peripheral<P = P> + 'd) -> Self
216216
where
217-
P: InputPin + GpioProperties,
217+
P: InputPin,
218218
{
219219
crate::into_ref!(pin);
220220
let pin = pin.degrade_pin(private::Internal);

0 commit comments

Comments
 (0)