Skip to content

Commit aaf57d5

Browse files
committed
gpioh
1 parent e5191cc commit aaf57d5

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/gpio.rs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -952,24 +952,7 @@ gpio!(GPIOG, gpiog, PG, 6, PGn, [
952952
PG15: (pg15, 15, Input<Floating>),
953953
]);
954954

955-
#[cfg(any(
956-
feature = "stm32f405",
957-
feature = "stm32f407",
958-
feature = "stm32f410",
959-
feature = "stm32f411",
960-
feature = "stm32f412",
961-
feature = "stm32f413",
962-
feature = "stm32f415",
963-
feature = "stm32f417",
964-
feature = "stm32f423",
965-
feature = "stm32f427",
966-
feature = "stm32f429",
967-
feature = "stm32f437",
968-
feature = "stm32f439",
969-
feature = "stm32f446",
970-
feature = "stm32f469",
971-
feature = "stm32f479"
972-
))]
955+
#[cfg(not(feature = "stm32f401"))]
973956
gpio!(GPIOH, gpioh, PH, 7, PHn, [
974957
PH0: (ph0, 0, Input<Floating>),
975958
PH1: (ph1, 1, Input<Floating>),
@@ -989,7 +972,7 @@ gpio!(GPIOH, gpioh, PH, 7, PHn, [
989972
PH15: (ph15, 15, Input<Floating>),
990973
]);
991974

992-
#[cfg(any(feature = "stm32f401"))]
975+
#[cfg(feature = "stm32f401")]
993976
gpio!(GPIOH, gpioh, PH, 7, PHn, [
994977
PH0: (ph0, 0, Input<Floating>),
995978
PH1: (ph1, 1, Input<Floating>),

0 commit comments

Comments
 (0)