Skip to content

Commit 3c0210b

Browse files
committed
Remove function that was deprecated in STM32H7 HAL
1 parent 8d0dfa7 commit 3c0210b

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/gpio/convert.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,6 @@ where
126126
}
127127
}
128128

129-
macro_rules! af {
130-
($($into_alternate_af:ident: $A:literal;)+) => {
131-
$(
132-
#[doc="Configures the pin to operate in alternate function "]
133-
#[doc=stringify!($A)]
134-
#[doc=" mode"]
135-
#[deprecated(since = "0.12.0", note = "Use the .into_alternate() method instead")]
136-
pub fn $into_alternate_af(self) -> Pin<P, N, Alternate<$A, PushPull>> where
137-
Self: marker::IntoAf<$A>,
138-
{
139-
self.into_alternate::<$A>()
140-
}
141-
)+
142-
}
143-
}
144-
145129
impl<const P: char, const N: u8, MODE: PinMode> Pin<P, N, MODE> {
146130
/// Configures the pin to operate alternate mode
147131
pub fn into_alternate<const A: u8>(
@@ -153,25 +137,6 @@ impl<const P: char, const N: u8, MODE: PinMode> Pin<P, N, MODE> {
153137
self.into_mode()
154138
}
155139

156-
af! {
157-
into_alternate_af0: 0;
158-
into_alternate_af1: 1;
159-
into_alternate_af2: 2;
160-
into_alternate_af3: 3;
161-
into_alternate_af4: 4;
162-
into_alternate_af5: 5;
163-
into_alternate_af6: 6;
164-
into_alternate_af7: 7;
165-
into_alternate_af8: 8;
166-
into_alternate_af9: 9;
167-
into_alternate_af10: 10;
168-
into_alternate_af11: 11;
169-
into_alternate_af12: 12;
170-
into_alternate_af13: 13;
171-
into_alternate_af14: 14;
172-
into_alternate_af15: 15;
173-
}
174-
175140
/// Configures the pin to operate in alternate open drain mode
176141
#[allow(path_statements)]
177142
pub fn into_alternate_open_drain<const A: u8>(

0 commit comments

Comments
 (0)