@@ -24,7 +24,8 @@ use crate::stm32::SPI4;
24
24
feature = "stm32f302xd" ,
25
25
feature = "stm32f302xe" ,
26
26
feature = "stm32f303xd" ,
27
- feature = "stm32f303xe"
27
+ feature = "stm32f303xe" ,
28
+ feature = "stm32f318" ,
28
29
) ) ]
29
30
use crate :: gpio:: gpioa:: { PA10 , PA11 } ;
30
31
use crate :: gpio:: gpioa:: { PA5 , PA6 , PA7 } ;
@@ -40,7 +41,7 @@ use crate::gpio::gpioa::{PA5, PA6, PA7};
40
41
) ) ]
41
42
use crate :: gpio:: gpiob:: PB13 ;
42
43
use crate :: gpio:: gpiob:: { PB14 , PB15 , PB5 } ;
43
- #[ cfg( any( feature = "stm32f302" , feature = "stm32f303" ) ) ]
44
+ #[ cfg( any( feature = "stm32f302" , feature = "stm32f303" , feature = "stm32f318" , ) ) ]
44
45
use crate :: gpio:: gpiob:: { PB3 , PB4 } ;
45
46
use crate :: gpio:: gpioc:: { PC10 , PC11 , PC12 } ;
46
47
#[ cfg( any(
@@ -56,7 +57,8 @@ use crate::gpio::gpioe::{PE12, PE13, PE14, PE2, PE5, PE6};
56
57
feature = "stm32f302xd" ,
57
58
feature = "stm32f302xe" ,
58
59
feature = "stm32f303xd" ,
59
- feature = "stm32f303xe"
60
+ feature = "stm32f303xe" ,
61
+ feature = "stm32f318" ,
60
62
) ) ]
61
63
use crate :: gpio:: gpiof:: PF1 ;
62
64
#[ cfg( any(
@@ -153,7 +155,8 @@ unsafe impl SckPin<SPI2> for PB13<AF5> {}
153
155
feature = "stm32f302xd" ,
154
156
feature = "stm32f302xe" ,
155
157
feature = "stm32f303xd" ,
156
- feature = "stm32f303xe"
158
+ feature = "stm32f303xe" ,
159
+ feature = "stm32f318" ,
157
160
) ) ]
158
161
unsafe impl SckPin < SPI2 > for PF1 < AF5 > { }
159
162
#[ cfg( any(
@@ -182,7 +185,8 @@ unsafe impl SckPin<SPI2> for PF10<AF5> {}
182
185
#[ cfg( any(
183
186
feature = "stm32f302" ,
184
187
feature = "stm32f303xd" ,
185
- feature = "stm32f303xe"
188
+ feature = "stm32f303xe" ,
189
+ feature = "stm32f318" ,
186
190
) ) ]
187
191
unsafe impl SckPin < SPI3 > for PB3 < AF6 > { }
188
192
unsafe impl SckPin < SPI3 > for PC10 < AF6 > { }
@@ -218,15 +222,17 @@ unsafe impl MisoPin<SPI1> for PB4<AF5> {}
218
222
feature = "stm32f302xd" ,
219
223
feature = "stm32f302xe" ,
220
224
feature = "stm32f303xd" ,
221
- feature = "stm32f303xe"
225
+ feature = "stm32f303xe" ,
226
+ feature = "stm32f318" ,
222
227
) ) ]
223
228
unsafe impl MisoPin < SPI2 > for PA10 < AF5 > { }
224
229
unsafe impl MisoPin < SPI2 > for PB14 < AF5 > { }
225
230
226
231
#[ cfg( any(
227
232
feature = "stm32f302" ,
228
233
feature = "stm32f303xd" ,
229
- feature = "stm32f303xe"
234
+ feature = "stm32f303xe" ,
235
+ feature = "stm32f318" ,
230
236
) ) ]
231
237
unsafe impl MisoPin < SPI3 > for PB4 < AF6 > { }
232
238
unsafe impl MisoPin < SPI3 > for PC11 < AF6 > { }
@@ -255,7 +261,8 @@ unsafe impl MosiPin<SPI1> for PB5<AF5> {}
255
261
feature = "stm32f302xd" ,
256
262
feature = "stm32f302xe" ,
257
263
feature = "stm32f303xd" ,
258
- feature = "stm32f303xe"
264
+ feature = "stm32f303xe" ,
265
+ feature = "stm32f318" ,
259
266
) ) ]
260
267
unsafe impl MosiPin < SPI2 > for PA11 < AF5 > { }
261
268
unsafe impl MosiPin < SPI2 > for PB15 < AF5 > { }
@@ -471,7 +478,7 @@ hal! {
471
478
feature = "stm32f301" ,
472
479
feature = "stm32f302x6" ,
473
480
feature = "stm32f302x8" ,
474
- feature = "stm32f318"
481
+ feature = "stm32f318" ,
475
482
) ) ]
476
483
hal ! {
477
484
SPI2 : ( spi2, APB1 , spi2en, spi2rst, pclk1) ,
@@ -483,7 +490,6 @@ hal! {
483
490
feature = "stm32f302xc" ,
484
491
feature = "stm32f303xb" ,
485
492
feature = "stm32f303xc" ,
486
- feature = "stm32f318" ,
487
493
feature = "stm32f328" ,
488
494
feature = "stm32f358" ,
489
495
feature = "stm32f373" ,
0 commit comments