@@ -191,7 +191,7 @@ macro_rules! adc_pins {
191
191
// # ADC1 Pin/Channel mapping
192
192
// ## f303
193
193
194
- #[ cfg( feature = "stm32f303 " ) ]
194
+ #[ cfg( feature = "svd-f303 " ) ]
195
195
adc_pins ! ( ADC1 ,
196
196
gpio:: PA0 <Analog > => 1 ,
197
197
gpio:: PA1 <Analog > => 2 ,
@@ -203,19 +203,14 @@ adc_pins!(ADC1,
203
203
gpio:: PC3 <Analog > => 9 ,
204
204
) ;
205
205
206
- #[ cfg( any ( feature = "stm32f303x6" , feature = "stm32f303x8" ) ) ]
206
+ #[ cfg( feature = "gpio-f333" ) ]
207
207
adc_pins ! ( ADC1 ,
208
208
gpio:: PB0 <Analog > => 11 ,
209
209
gpio:: PB1 <Analog > => 12 ,
210
210
gpio:: PB13 <Analog > => 13 ,
211
211
) ;
212
212
213
- #[ cfg( any(
214
- feature = "stm32f303xb" ,
215
- feature = "stm32f303xc" ,
216
- feature = "stm32f303xd" ,
217
- feature = "stm32f303xe" ,
218
- ) ) ]
213
+ #[ cfg( any( feature = "gpio-f303" , feature = "gpio-f303e" ) ) ]
219
214
adc_pins ! ( ADC1 ,
220
215
gpio:: PF4 <Analog > => 5 ,
221
216
gpio:: PF2 <Analog > => 10 ,
@@ -224,7 +219,7 @@ adc_pins!(ADC1,
224
219
// # ADC2 Pin/Channel mapping
225
220
// ## f303
226
221
227
- #[ cfg( feature = "stm32f303 " ) ]
222
+ #[ cfg( feature = "svd-f303 " ) ]
228
223
adc_pins ! ( ADC2 ,
229
224
gpio:: PA4 <Analog > => 1 ,
230
225
gpio:: PA5 <Analog > => 2 ,
@@ -239,32 +234,22 @@ adc_pins!(ADC2,
239
234
gpio:: PB2 <Analog > => 12 ,
240
235
) ;
241
236
242
- #[ cfg( any ( feature = "stm32f303x6" , feature = "stm32f303x8" ) ) ]
237
+ #[ cfg( feature = "gpio-f333" ) ]
243
238
adc_pins ! ( ADC2 ,
244
239
gpio:: PB12 <Analog > => 13 ,
245
240
gpio:: PB14 <Analog > => 14 ,
246
241
gpio:: PB15 <Analog > => 15 ,
247
242
) ;
248
243
249
- #[ cfg( any(
250
- feature = "stm32f303xb" ,
251
- feature = "stm32f303xc" ,
252
- feature = "stm32f303xd" ,
253
- feature = "stm32f303xe" ,
254
- ) ) ]
244
+ #[ cfg( any( feature = "gpio-f303" , feature = "gpio-f303e" , ) ) ]
255
245
adc_pins ! ( ADC2 ,
256
246
gpio:: PF2 <Analog > => 10 ,
257
247
) ;
258
248
259
249
// # ADC3 Pin/Channel mapping
260
250
// ## f303
261
251
262
- #[ cfg( any(
263
- feature = "stm32f303xb" ,
264
- feature = "stm32f303xc" ,
265
- feature = "stm32f303xd" ,
266
- feature = "stm32f303xe" ,
267
- ) ) ]
252
+ #[ cfg( any( feature = "gpio-f303" , feature = "gpio-f303e" , ) ) ]
268
253
adc_pins ! ( ADC3 ,
269
254
gpio:: PB1 <Analog > => 1 ,
270
255
gpio:: PE9 <Analog > => 2 ,
@@ -287,12 +272,7 @@ adc_pins!(ADC3,
287
272
// # ADC4 Pin/Channel mapping
288
273
// ## f303
289
274
290
- #[ cfg( any(
291
- feature = "stm32f303xb" ,
292
- feature = "stm32f303xc" ,
293
- feature = "stm32f303xd" ,
294
- feature = "stm32f303xe" ,
295
- ) ) ]
275
+ #[ cfg( any( feature = "gpio-f303" , feature = "gpio-f303e" , ) ) ]
296
276
adc_pins ! ( ADC4 ,
297
277
gpio:: PE14 <Analog > => 1 ,
298
278
gpio:: PE15 <Analog > => 2 ,
@@ -577,12 +557,7 @@ macro_rules! adc12_hal {
577
557
578
558
// Macro to implement ADC functionallity for ADC3 and ADC4
579
559
// TODO: Extend/differentiate beyond f303.
580
- #[ cfg( any(
581
- feature = "stm32f303xb" ,
582
- feature = "stm32f303xc" ,
583
- feature = "stm32f303xd" ,
584
- feature = "stm32f303xe" ,
585
- ) ) ]
560
+ #[ cfg( any( feature = "gpio-f303" , feature = "gpio-f303e" , ) ) ]
586
561
macro_rules! adc34_hal {
587
562
( $(
588
563
$ADC: ident: ( $adcx: ident) ,
@@ -610,17 +585,12 @@ macro_rules! adc34_hal {
610
585
}
611
586
}
612
587
613
- #[ cfg( feature = "stm32f303 " ) ]
588
+ #[ cfg( feature = "svd-f303 " ) ]
614
589
adc12_hal ! {
615
590
ADC1 : ( adc1) ,
616
591
ADC2 : ( adc2) ,
617
592
}
618
- #[ cfg( any(
619
- feature = "stm32f303xb" ,
620
- feature = "stm32f303xc" ,
621
- feature = "stm32f303xd" ,
622
- feature = "stm32f303xe" ,
623
- ) ) ]
593
+ #[ cfg( any( feature = "gpio-f303" , feature = "gpio-f303e" , ) ) ]
624
594
adc34_hal ! {
625
595
ADC3 : ( adc3) ,
626
596
ADC4 : ( adc4) ,
0 commit comments