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 @@ -531,7 +531,7 @@ macro_rules! on_channel {
531
531
} ;
532
532
}
533
533
534
- #[ cfg( feature = "stm32f303" ) ]
534
+ #[ cfg( any ( feature = "stm32f303" , feature = "stm32f302" ) ) ]
535
535
on_channel ! ( dma1,
536
536
serial:: Rx <pac:: USART1 > => C5 ,
537
537
serial:: Tx <pac:: USART1 > => C4 ,
@@ -540,3 +540,18 @@ on_channel!(dma1,
540
540
serial:: Rx <pac:: USART3 > => C3 ,
541
541
serial:: Tx <pac:: USART3 > => C2 ,
542
542
) ;
543
+
544
+ #[ cfg( any(
545
+ feature = "stm32f302xb" ,
546
+ feature = "stm32f302xc" ,
547
+ feature = "stm32f302xd" ,
548
+ feature = "stm32f302xe" ,
549
+ feature = "stm32f303xb" ,
550
+ feature = "stm32f303xc" ,
551
+ feature = "stm32f303xd" ,
552
+ feature = "stm32f303xe" ,
553
+ ) ) ]
554
+ on_channel ! ( dma2,
555
+ serial:: Rx <pac:: USART4 > => C3 ,
556
+ serial:: Tx <pac:: USART4 > => C5 ,
557
+ ) ;
You can’t perform that action at this time.
0 commit comments