diff --git a/stm32cube/stm32n6xx/drivers/include/stm32n6xx_ll_rcc.h b/stm32cube/stm32n6xx/drivers/include/stm32n6xx_ll_rcc.h index 2c4763b8f..45a9a10c3 100644 --- a/stm32cube/stm32n6xx/drivers/include/stm32n6xx_ll_rcc.h +++ b/stm32cube/stm32n6xx/drivers/include/stm32n6xx_ll_rcc.h @@ -4747,6 +4747,36 @@ __STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC(void) return ((READ_BIT(RCC->APB4ENR1, RCC_APB4ENR1_RTCEN) == (RCC_APB4ENR1_RTCEN)) ? 1UL : 0UL); } +/** + * @brief Enable RTC in Sleep mode + * @rmtoll APB4LPENSR1 RTCENS LL_RCC_EnableRTC_LP + * @retval None + */ +__STATIC_INLINE void LL_RCC_EnableRTC_LP(void) +{ + WRITE_REG(RCC->APB4LPENSR1, RCC_APB4LPENSR1_RTCLPENS); +} + +/** + * @brief Disable RTC in Sleep mode + * @rmtoll APB4LPENCR1 RTCENC LL_RCC_DisableRTC_LP + * @retval None + */ +__STATIC_INLINE void LL_RCC_DisableRTC_LP(void) +{ + WRITE_REG(RCC->APB4LPENCR1, RCC_APB4LPENCR1_RTCLPENC); +} + +/** + * @brief Check if RTC has been enabled or not in Sleep mode + * @rmtoll APB4LPENR1 RTCEN LL_RCC_IsEnabledRTC_LP + * @retval State of bit (1 or 0). + */ +__STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC_LP(void) +{ + return ((READ_BIT(RCC->APB4LPENR1, RCC_APB4LPENR1_RTCLPEN) == (RCC_APB4LPENR1_RTCLPEN)) ? 1UL : 0UL); +} + /** * @brief Force the Backup domain reset * @rmtoll BDCR VSWRST LL_RCC_ForceBackupDomainReset