From 9e7242eb88236eb2b9343ead38f3e74bc44a73d7 Mon Sep 17 00:00:00 2001 From: astapleton Date: Thu, 10 Oct 2024 11:03:37 -0700 Subject: [PATCH] Remove function that was deprecated in STM32H7 HAL --- src/gpio/convert.rs | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/gpio/convert.rs b/src/gpio/convert.rs index ca1ed9c..aecd510 100644 --- a/src/gpio/convert.rs +++ b/src/gpio/convert.rs @@ -126,22 +126,6 @@ where } } -macro_rules! af { - ($($into_alternate_af:ident: $A:literal;)+) => { - $( - #[doc="Configures the pin to operate in alternate function "] - #[doc=stringify!($A)] - #[doc=" mode"] - #[deprecated(since = "0.12.0", note = "Use the .into_alternate() method instead")] - pub fn $into_alternate_af(self) -> Pin> where - Self: marker::IntoAf<$A>, - { - self.into_alternate::<$A>() - } - )+ - } -} - impl Pin { /// Configures the pin to operate alternate mode pub fn into_alternate( @@ -153,25 +137,6 @@ impl Pin { self.into_mode() } - af! { - into_alternate_af0: 0; - into_alternate_af1: 1; - into_alternate_af2: 2; - into_alternate_af3: 3; - into_alternate_af4: 4; - into_alternate_af5: 5; - into_alternate_af6: 6; - into_alternate_af7: 7; - into_alternate_af8: 8; - into_alternate_af9: 9; - into_alternate_af10: 10; - into_alternate_af11: 11; - into_alternate_af12: 12; - into_alternate_af13: 13; - into_alternate_af14: 14; - into_alternate_af15: 15; - } - /// Configures the pin to operate in alternate open drain mode #[allow(path_statements)] pub fn into_alternate_open_drain(