@@ -60,34 +60,9 @@ macro_rules! halUart {
6060}
6161
6262#[ cfg( feature = "uart4" ) ]
63- #[ cfg( not( any( feature = "stm32f413" , feature = "stm32f423" ) ) ) ]
6463halUart ! { pac:: UART4 , Serial4 , Rx4 , Tx4 }
6564#[ cfg( feature = "uart5" ) ]
66- #[ cfg( not( any( feature = "stm32f413" , feature = "stm32f423" ) ) ) ]
6765halUart ! { pac:: UART5 , Serial5 , Rx5 , Tx5 }
68-
69- #[ cfg( feature = "uart4" ) ]
70- #[ cfg( any( feature = "stm32f413" , feature = "stm32f423" ) ) ]
71- impl Instance for pac:: UART4 {
72- type RegisterBlock = RegisterBlockUart ;
73-
74- fn ptr ( ) -> * const RegisterBlockUart {
75- pac:: UART4 :: ptr ( ) as * const _
76- }
77-
78- fn set_stopbits ( & self , _bits : config:: StopBits ) {
79- todo ! ( )
80- }
81-
82- fn peri_address ( ) -> u32 {
83- unsafe { ( * Self :: ptr ( ) ) . peri_address ( ) }
84- }
85- }
86-
87- #[ cfg( feature = "uart5" ) ]
88- #[ cfg( any( feature = "stm32f413" , feature = "stm32f423" ) ) ]
89- halUart ! { pac:: UART5 , Serial5 , Rx5 , Tx5 }
90-
9166#[ cfg( feature = "uart7" ) ]
9267halUart ! { pac:: UART7 , Serial7 , Rx7 , Tx7 }
9368#[ cfg( feature = "uart8" ) ]
0 commit comments