RTEMS | arm/stm32f4: extend USART DR field to 9 bits (!1141)
Mohamed Ayman (@mohamedayman23)
gitlab at rtems.org
Mon Mar 16 15:49:43 UTC 2026
Mohamed Ayman created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1141
Project:Branches: mohamedayman23/rtems:extend-USART-DR-field-to-9-bits to rtems/rtos/rtems:main
Author: Mohamed Ayman
## Summary
arm/stm32f4: extend USART DR field to 9 bits
The STM32F4 USART data register supports up to 9-bit data when CR1.M is set. The current DR macros mask only bits \[7:0\], which truncates the MSB in 9-bit mode. Extend the field width to \[8:0\] to match the hardware definition while remaining compatible with 8-bit mode.
## {width=812 height=600}
AI usage: yes\
Prompt used: check the registers by the USART register map which i include\
AI model: GPT-5 mini\
How AI was used: just for checking if this registers a valid to the this family reference manual or there is copy-paste issue
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1141
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260316/76f0fbad/attachment.htm>
More information about the bugs
mailing list