File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -116,18 +116,23 @@ macro_rules! usart_pins {
116
116
117
117
#[ cfg( any(
118
118
feature = "stm32f030" ,
119
+ feature = "stm32f031" ,
120
+ feature = "stm32f038" ,
119
121
feature = "stm32f042" ,
120
122
feature = "stm32f048" ,
121
123
feature = "stm32f051" ,
122
124
feature = "stm32f058" ,
125
+ feature = "stm32f070" ,
123
126
feature = "stm32f071" ,
127
+ feature = "stm32f072" ,
124
128
feature = "stm32f078" ,
129
+ feature = "stm32f091" ,
125
130
feature = "stm32f098" ,
126
131
) ) ]
127
132
usart_pins ! {
128
- USART1 => {
133
+ USART1 => {
129
134
tx => [ gpioa:: PA9 <Alternate <AF1 >>, gpiob:: PB6 <Alternate <AF0 >>] ,
130
- rx => [ gpioa:: PA10 <Alternate <AF1 >>, gpiob:: PB6 <Alternate <AF0 >>] ,
135
+ rx => [ gpioa:: PA10 <Alternate <AF1 >>, gpiob:: PB7 <Alternate <AF0 >>] ,
131
136
}
132
137
}
133
138
#[ cfg( any( feature = "stm32f030x6" , feature = "stm32f031" , feature = "stm32f038" ) ) ]
@@ -137,19 +142,6 @@ usart_pins! {
137
142
rx => [ gpioa:: PA3 <Alternate <AF1 >>, gpioa:: PA15 <Alternate <AF1 >>] ,
138
143
}
139
144
}
140
- #[ cfg( any(
141
- feature = "stm32f031" ,
142
- feature = "stm32f038" ,
143
- feature = "stm32f070" ,
144
- feature = "stm32f072" ,
145
- feature = "stm32f091" ,
146
- ) ) ]
147
- usart_pins ! {
148
- USART1 => {
149
- tx => [ gpioa:: PA9 <Alternate <AF1 >>, gpiob:: PB6 <Alternate <AF0 >>] ,
150
- rx => [ gpioa:: PA10 <Alternate <AF1 >>, gpiob:: PB7 <Alternate <AF0 >>] ,
151
- }
152
- }
153
145
154
146
#[ cfg( any(
155
147
feature = "stm32f030x8" ,
You can’t perform that action at this time.
0 commit comments