stm32-rs / stm32g0xx-hal

Peripheral access API for STM32G0 series microcontrollers
Apache License 2.0
73 stars 51 forks source link

Fix word length registers for uart_full config #134

Closed calebissharp closed 1 year ago

calebissharp commented 1 year ago

Fixes an issue where m0 and m1 were reversed when setting the word length for a usart peripheral. It appears this was fixed in #31 for uart_basic implementations, but not uart_full.

For reference, I've tested this on an STM32G030 and can confirm it resolves the issue.

Relevant manual excerpt (page 828):

image
andresv commented 1 year ago

Thanks for the PR.