Skip to content

Commit e202591

Browse files
committed
ADC - Add pins for 56x and 573
1 parent 806715f commit e202591

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/adc/h5.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@ macro_rules! adc_pins_common {
124124
)*};
125125
}
126126

127-
#[cfg(any(
128-
feature = "stm32h503",
129-
feature = "stm32h523",
130-
feature = "stm32h533"
131-
))]
132127
adc_pins_common!(
133128
gpio::PC0<Analog> => 10,
134129
gpio::PC1<Analog> => 11,
@@ -150,15 +145,14 @@ adc_pins_common!(
150145
gpio::PB1<Analog> => 5,
151146
);
152147

153-
#[cfg(feature = "stm32h523")]
148+
#[cfg(feature = "rm0481")]
154149
adc_pins!(
155150
ADC1,
156151
gpio::PF11<Analog> => 2,
157152
gpio::PF12<Analog> => 6,
158-
159153
);
160154

161-
#[cfg(feature = "stm32h523")]
155+
#[cfg(feature = "rm0481")]
162156
adc_pins!(
163157
ADC2,
164158
gpio::PF13<Analog> => 2,

0 commit comments

Comments
 (0)