@@ -61,6 +61,7 @@ use crate::gpio::gpiog::{
61
61
use crate :: gpio:: gpioh:: {
62
62
PH10 , PH11 , PH12 , PH13 , PH14 , PH15 , PH2 , PH3 , PH5 , PH6 , PH7 , PH8 , PH9 ,
63
63
} ;
64
+ #[ cfg( not( feature = "rm0468" ) ) ]
64
65
use crate :: gpio:: gpioi:: { PI0 , PI1 , PI10 , PI2 , PI3 , PI4 , PI5 , PI6 , PI7 , PI9 } ;
65
66
use crate :: gpio:: { Alternate , AF12 , AF9 } ;
66
67
@@ -149,9 +150,10 @@ unsafe impl FmcPeripheral for FMC {
149
150
}
150
151
151
152
macro_rules! pins {
152
- ( FMC : $( $pin: ident: [ $( $inst: ty) ,* ] ) +) => {
153
+ ( FMC : $( $pin: ident: [ $( $ ( # [ $pmeta : meta ] ) * $inst: ty) ,* ] ) +) => {
153
154
$(
154
155
$(
156
+ $( #[ $pmeta ] ) *
155
157
impl stm32_fmc:: $pin for $inst { }
156
158
) *
157
159
) +
@@ -216,14 +218,14 @@ pins! {
216
218
D21 : [ PH13 <Alternate <AF12 >> ]
217
219
D22 : [ PH14 <Alternate <AF12 >> ]
218
220
D23 : [ PH15 <Alternate <AF12 >> ]
219
- D24 : [ PI0 <Alternate <AF12 >> ]
220
- D25 : [ PI1 <Alternate <AF12 >> ]
221
- D26 : [ PI2 <Alternate <AF12 >> ]
222
- D27 : [ PI3 <Alternate <AF12 >> ]
223
- D28 : [ PI6 <Alternate <AF12 >> ]
224
- D29 : [ PI7 <Alternate <AF12 >> ]
225
- D30 : [ PI9 <Alternate <AF12 >> ]
226
- D31 : [ PI10 <Alternate <AF12 >> ]
221
+ D24 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI0 <Alternate <AF12 >> ]
222
+ D25 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI1 <Alternate <AF12 >> ]
223
+ D26 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI2 <Alternate <AF12 >> ]
224
+ D27 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI3 <Alternate <AF12 >> ]
225
+ D28 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI6 <Alternate <AF12 >> ]
226
+ D29 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI7 <Alternate <AF12 >> ]
227
+ D30 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI9 <Alternate <AF12 >> ]
228
+ D31 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI10 <Alternate <AF12 >> ]
227
229
228
230
DA0 : [ PD14 <Alternate <AF12 >> ]
229
231
DA1 : [ PD15 <Alternate <AF12 >> ]
@@ -246,8 +248,8 @@ pins! {
246
248
247
249
NBL0 : [ PE0 <Alternate <AF12 >> ]
248
250
NBL1 : [ PE1 <Alternate <AF12 >> ]
249
- NBL2 : [ PI4 <Alternate <AF12 >> ]
250
- NBL3 : [ PI5 <Alternate <AF12 >> ]
251
+ NBL2 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI4 <Alternate <AF12 >> ]
252
+ NBL3 : [ # [ cfg ( not ( feature = "rm0468" ) ) ] PI5 <Alternate <AF12 >> ]
251
253
252
254
// NAND
253
255
NCE : [
0 commit comments