@@ -447,12 +447,14 @@ macro_rules! hal {
447
447
}
448
448
449
449
#[ cfg( any(
450
+ feature = "stm32f302" ,
450
451
feature = "stm32f301" ,
451
452
feature = "stm32f318" ,
452
453
feature = "stm32f303" ,
453
454
feature = "stm32f373" ,
454
455
feature = "stm32f378" ,
455
456
feature = "stm32f328" ,
457
+ feature = "stm32f334" ,
456
458
feature = "stm32f358" ,
457
459
feature = "stm32f398"
458
460
) ) ]
@@ -462,8 +464,16 @@ hal! {
462
464
USART3 : ( usart3, APB1 , usart3en, usart3rst, pclk1) ,
463
465
}
464
466
465
- #[ cfg( any( feature = "stm32f302" , feature = "stm32f334" ) ) ]
467
+ #[ cfg( any(
468
+ feature = "stm32f302xb" ,
469
+ feature = "stm32f302xc" ,
470
+ feature = "stm32f302xd" ,
471
+ feature = "stm32f302xe" ,
472
+ feature = "stm32f303xb" ,
473
+ feature = "stm32f303xc" ,
474
+ feature = "stm32f303xd" ,
475
+ feature = "stm32f303xe" ,
476
+ ) ) ]
466
477
hal ! {
467
- USART1 : ( usart1, APB2 , usart1en, usart1rst, pclk2) ,
468
- USART2 : ( usart2, APB1 , usart2en, usart2rst, pclk1) ,
478
+ USART4 : ( usart4, APB1 , usart4en, usart4rst, pclk2) ,
469
479
}
0 commit comments