@@ -60,34 +60,9 @@ macro_rules! halUart {
60
60
}
61
61
62
62
#[ cfg( feature = "uart4" ) ]
63
- #[ cfg( not( any( feature = "stm32f413" , feature = "stm32f423" ) ) ) ]
64
63
halUart ! { pac:: UART4 , Serial4 , Rx4 , Tx4 }
65
64
#[ cfg( feature = "uart5" ) ]
66
- #[ cfg( not( any( feature = "stm32f413" , feature = "stm32f423" ) ) ) ]
67
65
halUart ! { 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
-
91
66
#[ cfg( feature = "uart7" ) ]
92
67
halUart ! { pac:: UART7 , Serial7 , Rx7 , Tx7 }
93
68
#[ cfg( feature = "uart8" ) ]
0 commit comments