diff --git a/os/hal/platforms/STM32/USARTv2/uart_lld.h b/os/hal/platforms/STM32/USARTv2/uart_lld.h index 29a5e85da..57fbfd975 100644 --- a/os/hal/platforms/STM32/USARTv2/uart_lld.h +++ b/os/hal/platforms/STM32/USARTv2/uart_lld.h @@ -340,15 +340,15 @@ typedef struct { /** * @brief Initialization value for the CR1 register. */ - uint16_t cr1; + uint32_t cr1; /** * @brief Initialization value for the CR2 register. */ - uint16_t cr2; + uint32_t cr2; /** * @brief Initialization value for the CR3 register. */ - uint16_t cr3; + uint32_t cr3; } UARTConfig; /** diff --git a/readme.txt b/readme.txt index cf0255124..9b91d0786 100644 --- a/readme.txt +++ b/readme.txt @@ -82,6 +82,7 @@ ***************************************************************************** *** 2.5.1 *** +- FIX: Fixed wrong type for UART config registers (bug 3579434). - FIX: Fixed various typos and wrong limits in the STM32F4/F2 HAL driver (bug 3578944)(backported to 2.4.3). - FIX: Fixed ARM CMx crt0.c fails at low optimization levels (bug 3578927)