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).