@@ -122,6 +122,7 @@ macro_rules! usart_pins {
122122 feature = "stm32f058" ,
123123 feature = "stm32f071" ,
124124 feature = "stm32f078" ,
125+ feature = "stm32f098" ,
125126) ) ]
126127usart_pins ! {
127128 USART1 => {
@@ -162,6 +163,7 @@ usart_pins! {
162163 feature = "stm32f072" ,
163164 feature = "stm32f078" ,
164165 feature = "stm32f091" ,
166+ feature = "stm32f098" ,
165167) ) ]
166168usart_pins ! {
167169 USART2 => {
@@ -173,7 +175,8 @@ usart_pins! {
173175 feature = "stm32f072" ,
174176 feature = "stm32f071" ,
175177 feature = "stm32f078" ,
176- feature = "stm32f091"
178+ feature = "stm32f091" ,
179+ feature = "stm32f098" ,
177180) ) ]
178181usart_pins ! {
179182 USART2 => {
@@ -189,6 +192,7 @@ usart_pins! {
189192 feature = "stm32f072" ,
190193 feature = "stm32f078" ,
191194 feature = "stm32f091" ,
195+ feature = "stm32f098" ,
192196) ) ]
193197usart_pins ! {
194198 USART3 => {
@@ -206,6 +210,7 @@ usart_pins! {
206210 feature = "stm32f072" ,
207211 feature = "stm32f078" ,
208212 feature = "stm32f091" ,
213+ feature = "stm32f098" ,
209214) ) ]
210215usart_pins ! {
211216 USART3 => {
@@ -224,7 +229,7 @@ usart_pins! {
224229// }
225230// }
226231
227- #[ cfg( any( feature = "stm32f030xc" , feature = "stm32f091" ) ) ]
232+ #[ cfg( any( feature = "stm32f030xc" , feature = "stm32f091" , feature = "stm32f098" ) ) ]
228233usart_pins ! {
229234 USART5 => {
230235 tx => [ gpiob:: PB3 <Alternate <AF4 >>, gpioc:: PC12 <Alternate <AF2 >>] ,
@@ -237,7 +242,7 @@ usart_pins! {
237242}
238243// TODO: The ST SVD files are missing the entire PE enable register.
239244// Re-enable as soon as this gets fixed.
240- #[ cfg( feature = "stm32f091" ) ]
245+ #[ cfg( any ( feature = "stm32f091" , feature = "stm32f098" ) ) ]
241246usart_pins ! {
242247 // USART5 => {
243248 // tx => [gpioe::PE10<Alternate<AF1>>],
@@ -391,6 +396,7 @@ usart! {
391396 feature = "stm32f072" ,
392397 feature = "stm32f078" ,
393398 feature = "stm32f091" ,
399+ feature = "stm32f098" ,
394400) ) ]
395401usart ! {
396402 USART2 : ( usart2, usart2tx, usart2rx, usart2en, apb1enr) ,
@@ -402,12 +408,13 @@ usart! {
402408 feature = "stm32f072" ,
403409 feature = "stm32f078" ,
404410 feature = "stm32f091" ,
411+ feature = "stm32f098" ,
405412) ) ]
406413usart ! {
407414 USART3 : ( usart3, usart3tx, usart3rx, usart3en, apb1enr) ,
408415 USART4 : ( usart4, usart4tx, usart4rx, usart4en, apb1enr) ,
409416}
410- #[ cfg( any( feature = "stm32f030xc" , feature = "stm32f091" ) ) ]
417+ #[ cfg( any( feature = "stm32f030xc" , feature = "stm32f091" , feature = "stm32f098" ) ) ]
411418usart ! {
412419 USART5 : ( usart5, usart5tx, usart5rx, usart5en, apb1enr) ,
413420 USART6 : ( usart6, usart6tx, usart6rx, usart6en, apb2enr) ,
0 commit comments