From 00b903fa75756669fa448ee39d5253ccd2cc45b4 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 23 Apr 2021 15:35:50 +0000 Subject: [PATCH] Fixed bug #1113 (again). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14272 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32H7xx/stm32_rcc.h | 23 +++++++++++++++++++++++ readme.txt | 2 ++ 2 files changed, 25 insertions(+) diff --git a/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h b/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h index 221684603..1b78dbb80 100644 --- a/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h +++ b/os/hal/ports/STM32/STM32H7xx/stm32_rcc.h @@ -1771,6 +1771,29 @@ * @api */ #define rccResetUART8() rccResetAPB1L(RCC_APB1LRSTR_UART8RST) + +/** + * @brief Enables the LPUART1 peripheral clock. + * + * @param[in] lp low power enable flag + * + * @api + */ +#define rccEnableLPUART1(lp) rccEnableAPB4(RCC_APB4ENR_LPUART1EN, lp) + +/** + * @brief Disables the LPUART1 peripheral clock. + * + * @api + */ +#define rccDisableLPUART1() rccDisableAPB4(RCC_APB4ENR_LPUART1EN) + +/** + * @brief Resets the LPUART1 peripheral. + * + * @api + */ +#define rccResetLPUART1() rccResetAPB4(RCC_APB4RSTR_LPUART1RST) /** @} */ /** diff --git a/readme.txt b/readme.txt index b18ffdc40..69c11b346 100644 --- a/readme.txt +++ b/readme.txt @@ -130,6 +130,8 @@ MEMS Accelerometers. - NEW: Safer messages mechanism for sandboxes (to be backported to 20.3.1). - NEW: Added latency measurement test application. +- FIX: Fixed (again) LPUART1 support for STM32H7xx (bug #1113) + (backported to 20.3.4). - FIX: Fixed wrong errors handling in STM32 ADC drivers (bug #1152). - FIX: Fixed wrong behavior in Serial-USB driver (bug #1151) (backported to 20.3.4)(backported to 19.1.5).