diff --git a/os/hal/ports/STM32/STM32G0xx/stm32_rcc.h b/os/hal/ports/STM32/STM32G0xx/stm32_rcc.h index e6bf685a0..3927dea5c 100644 --- a/os/hal/ports/STM32/STM32G0xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32G0xx/stm32_rcc.h @@ -808,14 +808,14 @@ * * @api */ -#define rccEnableLPUART1(lp) rccEnableAPBR1(RCC_APBENR1_LPTIM2EN, lp) +#define rccEnableLPUART1(lp) rccEnableAPBR1(RCC_APBENR1_LPUART1EN, lp) /** * @brief Disables the LPUART1 peripheral clock. * * @api */ -#define rccDisableLPUART1() rccDisableAPBR1(RCC_APBENR1_LPTIM2EN) +#define rccDisableLPUART1() rccDisableAPBR1(RCC_APBENR1_LPUART1EN) /** * @brief Resets the USART1 peripheral. diff --git a/readme.txt b/readme.txt index 2df1392db..39ffe5212 100644 --- a/readme.txt +++ b/readme.txt @@ -79,8 +79,10 @@ - NEW: EFL driver and demo for STM32F3xx. - NEW: New unit test subsystem under /os/test. Now it is officially ChibiOS/TEST. -- FIX: Support for STM32G491 (bug #1187)(TBP). -- FIX: fixes for uart clock rounding, missing DMA streams and timers +- FIX: Fixed invalid RCC LPUART1 clock enable on STM32G0xx (bug #1189) + (TBP to 21.6.1)(backported to 20.3.4). +- FIX: Support for STM32G491 (bug #1187)(TBP to 21.6.1). +- FIX: Fixes for uart clock rounding, missing DMA streams and timers (bug #1186)(TBP). - FIX: Fixed invalid check in chVTResetTimeStamp() function (bug #1185) (TBP).