/* Configures the RTC and LCD clock (RTCCLK / LCDCLK).  */
void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource)
/* Configures the RTC and LCD clock (RTCCLK / LCDCLK).  */
void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource)
{
  uint32_t 	tmpreg = 0;
  assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource));
  if ((RCC_RTCCLKSource & RCC_CSR_RTCSEL_HSE) == RCC_CSR_RTCSEL_HSE)
  {
    tmpreg = RCC->CR;
    tmpreg &= ~RCC_CR_RTCPRE;
    tmpreg |= (RCC_RTCCLKSource & RCC_CR_RTCPRE);
    RCC->CR = tmpreg;
  }
  RCC->CSR &= ~RCC_CSR_RTCSEL;
  RCC->CSR |= (RCC_RTCCLKSource & RCC_CSR_RTCSEL);
}