/* Configure the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz).  */
void RTC_CalibOutputConfig(uint32_t RTC_CalibOutput)
/* Configure the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz).  */
void RTC_CalibOutputConfig(uint32_t RTC_CalibOutput)
{
  assert_param(IS_RTC_CALIB_OUTPUT(RTC_CalibOutput));
  RTC->WPR = 0xCA;
  RTC->WPR = 0x53;
  RTC->CR &= (uint32_t)~(RTC_CR_CALSEL);
  RTC->CR |= (uint32_t)RTC_CalibOutput;
  RTC->WPR = 0xFF;
}