File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ macro_rules! on_channel {
742
742
} ;
743
743
}
744
744
745
- #[ cfg( feature = "stm32f303" ) ]
745
+ #[ cfg( any ( feature = "stm32f303" , feature = "stm32f302" ) ) ]
746
746
on_channel ! ( dma1,
747
747
serial:: Rx <pac:: USART1 > => C5 ,
748
748
serial:: Tx <pac:: USART1 > => C4 ,
@@ -751,3 +751,18 @@ on_channel!(dma1,
751
751
serial:: Rx <pac:: USART3 > => C3 ,
752
752
serial:: Tx <pac:: USART3 > => C2 ,
753
753
) ;
754
+
755
+ #[ cfg( any(
756
+ feature = "stm32f302xb" ,
757
+ feature = "stm32f302xc" ,
758
+ feature = "stm32f302xd" ,
759
+ feature = "stm32f302xe" ,
760
+ feature = "stm32f303xb" ,
761
+ feature = "stm32f303xc" ,
762
+ feature = "stm32f303xd" ,
763
+ feature = "stm32f303xe" ,
764
+ ) ) ]
765
+ on_channel ! ( dma2,
766
+ serial:: Rx <pac:: USART4 > => C3 ,
767
+ serial:: Tx <pac:: USART4 > => C5 ,
768
+ ) ;
You can’t perform that action at this time.
0 commit comments