@@ -14,7 +14,8 @@ use crate::stm32::spi1;
14
14
feature = "stm32f302xd" ,
15
15
feature = "stm32f302xe" ,
16
16
feature = "stm32f303xd" ,
17
- feature = "stm32f303xe"
17
+ feature = "stm32f303xe" ,
18
+ feature = "stm32f398" ,
18
19
) ) ]
19
20
use crate :: stm32:: SPI4 ;
20
21
@@ -28,6 +29,7 @@ use crate::gpio::gpioa::{PA1, PA10, PA12, PA13, PA2, PA3, PA8, PA9};
28
29
feature = "stm32f303xd" ,
29
30
feature = "stm32f303xe" ,
30
31
feature = "stm32f318" ,
32
+ feature = "stm32f398" ,
31
33
) ) ]
32
34
use crate :: gpio:: gpioa:: { PA10 , PA11 } ;
33
35
use crate :: gpio:: gpioa:: { PA5 , PA6 , PA7 } ;
@@ -52,6 +54,7 @@ use crate::gpio::gpiob::{PB14, PB15, PB5};
52
54
feature = "stm32f358" ,
53
55
feature = "stm32f373" ,
54
56
feature = "stm32f378" ,
57
+ feature = "stm32f398" ,
55
58
) ) ]
56
59
use crate :: gpio:: gpiob:: { PB3 , PB4 } ;
57
60
use crate :: gpio:: gpioc:: { PC10 , PC11 , PC12 } ;
@@ -63,7 +66,8 @@ use crate::gpio::gpiod::{PD3, PD4, PD7, PD8};
63
66
feature = "stm32f302xd" ,
64
67
feature = "stm32f302xe" ,
65
68
feature = "stm32f303xd" ,
66
- feature = "stm32f303xe"
69
+ feature = "stm32f303xe" ,
70
+ feature = "stm32f398" ,
67
71
) ) ]
68
72
use crate :: gpio:: gpioe:: { PE12 , PE13 , PE14 , PE2 , PE5 , PE6 } ;
69
73
#[ cfg( any(
@@ -74,6 +78,7 @@ use crate::gpio::gpioe::{PE12, PE13, PE14, PE2, PE5, PE6};
74
78
feature = "stm32f303xd" ,
75
79
feature = "stm32f303xe" ,
76
80
feature = "stm32f318" ,
81
+ feature = "stm32f398" ,
77
82
) ) ]
78
83
use crate :: gpio:: gpiof:: PF1 ;
79
84
#[ cfg( any( feature = "stm32f373" , feature = "stm32f378" ) ) ]
@@ -88,6 +93,7 @@ use crate::gpio::gpiof::PF6;
88
93
feature = "stm32f303xd" ,
89
94
feature = "stm32f303xe" ,
90
95
feature = "stm32f358" ,
96
+ feature = "stm32f398" ,
91
97
) ) ]
92
98
use crate :: gpio:: gpiof:: { PF10 , PF9 } ;
93
99
use crate :: gpio:: { AF5 , AF6 } ;
@@ -158,6 +164,7 @@ unsafe impl SckPin<SPI1> for PA12<AF6> {}
158
164
feature = "stm32f358" ,
159
165
feature = "stm32f373" ,
160
166
feature = "stm32f378" ,
167
+ feature = "stm32f398" ,
161
168
) ) ]
162
169
unsafe impl SckPin < SPI1 > for PB3 < AF5 > { }
163
170
#[ cfg( any( feature = "stm32f373" , feature = "stm32f378" ) ) ]
@@ -191,6 +198,7 @@ unsafe impl SckPin<SPI2> for PD8<AF5> {}
191
198
feature = "stm32f303xd" ,
192
199
feature = "stm32f303xe" ,
193
200
feature = "stm32f318" ,
201
+ feature = "stm32f398" ,
194
202
) ) ]
195
203
unsafe impl SckPin < SPI2 > for PF1 < AF5 > { }
196
204
#[ cfg( any(
@@ -203,6 +211,7 @@ unsafe impl SckPin<SPI2> for PF1<AF5> {}
203
211
feature = "stm32f303xd" ,
204
212
feature = "stm32f303xe" ,
205
213
feature = "stm32f358" ,
214
+ feature = "stm32f398" ,
206
215
) ) ]
207
216
unsafe impl SckPin < SPI2 > for PF9 < AF5 > { }
208
217
#[ cfg( any(
@@ -215,6 +224,7 @@ unsafe impl SckPin<SPI2> for PF9<AF5> {}
215
224
feature = "stm32f303xd" ,
216
225
feature = "stm32f303xe" ,
217
226
feature = "stm32f358" ,
227
+ feature = "stm32f398" ,
218
228
) ) ]
219
229
unsafe impl SckPin < SPI2 > for PF10 < AF5 > { }
220
230
@@ -227,6 +237,7 @@ unsafe impl SckPin<SPI3> for PA1<AF6> {}
227
237
feature = "stm32f318" ,
228
238
feature = "stm32f373" ,
229
239
feature = "stm32f378" ,
240
+ feature = "stm32f398" ,
230
241
) ) ]
231
242
unsafe impl SckPin < SPI3 > for PB3 < AF6 > { }
232
243
unsafe impl SckPin < SPI3 > for PC10 < AF6 > { }
@@ -235,14 +246,16 @@ unsafe impl SckPin<SPI3> for PC10<AF6> {}
235
246
feature = "stm32f302xd" ,
236
247
feature = "stm32f302xe" ,
237
248
feature = "stm32f303xd" ,
238
- feature = "stm32f303xe"
249
+ feature = "stm32f303xe" ,
250
+ feature = "stm32f398" ,
239
251
) ) ]
240
252
unsafe impl SckPin < SPI4 > for PE2 < AF5 > { }
241
253
#[ cfg( any(
242
254
feature = "stm32f302xd" ,
243
255
feature = "stm32f302xe" ,
244
256
feature = "stm32f303xd" ,
245
- feature = "stm32f303xe"
257
+ feature = "stm32f303xe" ,
258
+ feature = "stm32f398" ,
246
259
) ) ]
247
260
unsafe impl SckPin < SPI4 > for PE12 < AF5 > { }
248
261
@@ -259,6 +272,7 @@ unsafe impl MisoPin<SPI1> for PA13<AF6> {}
259
272
feature = "stm32f358" ,
260
273
feature = "stm32f373" ,
261
274
feature = "stm32f378" ,
275
+ feature = "stm32f398" ,
262
276
) ) ]
263
277
unsafe impl MisoPin < SPI1 > for PB4 < AF5 > { }
264
278
#[ cfg( any( feature = "stm32f373" , feature = "stm32f378" ) ) ]
@@ -274,6 +288,7 @@ unsafe impl MisoPin<SPI2> for PA9<AF5> {}
274
288
feature = "stm32f303xd" ,
275
289
feature = "stm32f303xe" ,
276
290
feature = "stm32f318" ,
291
+ feature = "stm32f398" ,
277
292
) ) ]
278
293
unsafe impl MisoPin < SPI2 > for PA10 < AF5 > { }
279
294
unsafe impl MisoPin < SPI2 > for PB14 < AF5 > { }
@@ -291,6 +306,7 @@ unsafe impl MisoPin<SPI3> for PA2<AF6> {}
291
306
feature = "stm32f318" ,
292
307
feature = "stm32f373" ,
293
308
feature = "stm32f378" ,
309
+ feature = "stm32f398" ,
294
310
) ) ]
295
311
unsafe impl MisoPin < SPI3 > for PB4 < AF6 > { }
296
312
unsafe impl MisoPin < SPI3 > for PC11 < AF6 > { }
@@ -299,14 +315,16 @@ unsafe impl MisoPin<SPI3> for PC11<AF6> {}
299
315
feature = "stm32f302xd" ,
300
316
feature = "stm32f302xe" ,
301
317
feature = "stm32f303xd" ,
302
- feature = "stm32f303xe"
318
+ feature = "stm32f303xe" ,
319
+ feature = "stm32f398" ,
303
320
) ) ]
304
321
unsafe impl MisoPin < SPI4 > for PE5 < AF5 > { }
305
322
#[ cfg( any(
306
323
feature = "stm32f302xd" ,
307
324
feature = "stm32f302xe" ,
308
325
feature = "stm32f303xd" ,
309
- feature = "stm32f303xe"
326
+ feature = "stm32f303xe" ,
327
+ feature = "stm32f398" ,
310
328
) ) ]
311
329
unsafe impl MisoPin < SPI4 > for PE13 < AF5 > { }
312
330
@@ -329,6 +347,7 @@ unsafe impl MosiPin<SPI2> for PA10<AF5> {}
329
347
feature = "stm32f303xd" ,
330
348
feature = "stm32f303xe" ,
331
349
feature = "stm32f318" ,
350
+ feature = "stm32f398" ,
332
351
) ) ]
333
352
unsafe impl MosiPin < SPI2 > for PA11 < AF5 > { }
334
353
unsafe impl MosiPin < SPI2 > for PB15 < AF5 > { }
@@ -346,14 +365,16 @@ unsafe impl MosiPin<SPI3> for PC12<AF6> {}
346
365
feature = "stm32f302xd" ,
347
366
feature = "stm32f302xe" ,
348
367
feature = "stm32f303xd" ,
349
- feature = "stm32f303xe"
368
+ feature = "stm32f303xe" ,
369
+ feature = "stm32f398" ,
350
370
) ) ]
351
371
unsafe impl MosiPin < SPI4 > for PE6 < AF5 > { }
352
372
#[ cfg( any(
353
373
feature = "stm32f302xd" ,
354
374
feature = "stm32f302xe" ,
355
375
feature = "stm32f303xd" ,
356
- feature = "stm32f303xe"
376
+ feature = "stm32f303xe" ,
377
+ feature = "stm32f398" ,
357
378
) ) ]
358
379
unsafe impl MosiPin < SPI4 > for PE14 < AF5 > { }
359
380
@@ -566,7 +587,6 @@ hal! {
566
587
feature = "stm32f358" ,
567
588
feature = "stm32f373" ,
568
589
feature = "stm32f378" ,
569
- feature = "stm32f398"
570
590
) ) ]
571
591
hal ! {
572
592
SPI1 : ( spi1, APB2 , spi1en, spi1rst, pclk2) ,
@@ -578,7 +598,8 @@ hal! {
578
598
feature = "stm32f302xd" ,
579
599
feature = "stm32f302xe" ,
580
600
feature = "stm32f303xd" ,
581
- feature = "stm32f303xe"
601
+ feature = "stm32f303xe" ,
602
+ feature = "stm32f398" ,
582
603
) ) ]
583
604
hal ! {
584
605
SPI1 : ( spi1, APB2 , spi1en, spi1rst, pclk2) ,
0 commit comments