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