From b54c6ba3b52cd5fa48afe63b27c24d243adf663c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 19 Sep 2021 08:16:52 +0000 Subject: [PATCH] Fixed bug #1189. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14802 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32G0xx/stm32_rcc.h | 4 ++-- readme.txt | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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).