STM32L486xx HAL User Manual
Defines
RCC RTC Clock Configuration
RCC Exported Macros

Defines

#define __HAL_RCC_RTC_ENABLE()   SET_BIT(RCC->BDCR, RCC_BDCR_RTCEN)
 Macros to enable or disable the RTC clock.
#define __HAL_RCC_RTC_DISABLE()   CLEAR_BIT(RCC->BDCR, RCC_BDCR_RTCEN)

Define Documentation

#define __HAL_RCC_RTC_DISABLE ( )    CLEAR_BIT(RCC->BDCR, RCC_BDCR_RTCEN)

Definition at line 3675 of file stm32l4xx_hal_rcc.h.

#define __HAL_RCC_RTC_ENABLE ( )    SET_BIT(RCC->BDCR, RCC_BDCR_RTCEN)

Macros to enable or disable the RTC clock.

Note:
As the RTC is in the Backup domain and write access is denied to this domain after reset, you have to enable write access using HAL_PWR_EnableBkUpAccess() function before to configure the RTC (to be done once after reset).
These macros must be used after the RTC clock source was selected.
Return values:
None

Definition at line 3673 of file stm32l4xx_hal_rcc.h.