From a6113f416631ee122b1ea36e530dfb4096a169ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 4 Sep 2024 14:58:18 +0200 Subject: [PATCH] Accept any pin in AnyPin --- esp-hal/src/gpio/any_pin.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp-hal/src/gpio/any_pin.rs b/esp-hal/src/gpio/any_pin.rs index 338877b067..4f58ac4e28 100644 --- a/esp-hal/src/gpio/any_pin.rs +++ b/esp-hal/src/gpio/any_pin.rs @@ -27,7 +27,7 @@ impl<'d> AnyPin<'d> { #[inline] pub fn new

(pin: impl crate::peripheral::Peripheral

+ 'd) -> Self where - P: OutputPin + InputPin, + P: Pin, { crate::into_ref!(pin); let pin = pin.degrade_internal(private::Internal); @@ -44,7 +44,7 @@ impl<'d> AnyPin<'d> { #[inline] pub fn new_inverted

(pin: impl crate::peripheral::Peripheral

+ 'd) -> Self where - P: OutputPin + InputPin, + P: Pin, { crate::into_ref!(pin); let pin = pin.degrade_internal(private::Internal); @@ -214,7 +214,7 @@ impl<'d> AnyInputOnlyPin<'d> { #[inline] pub fn new

(pin: impl crate::peripheral::Peripheral

+ 'd) -> Self where - P: InputPin + GpioProperties, + P: InputPin, { crate::into_ref!(pin); let pin = pin.degrade_pin(private::Internal);