/* Returns the clock source used as RTC clock (RTCCLK).  */
uint32_t RCC_GetRTCClkSrc(void)
/* Returns the clock source used as RTC clock (RTCCLK).  */
uint32_t RCC_GetRTCClkSrc(void)
{
    return ((uint32_t)(RCC->LDCTRL & RCC_LDCTRL_RTCSEL));
}