/* RTC Leave Configuration Mode. 
Revert the RTC to operational state.  */
void rtc_exit_config_mode(void)
/* RTC Leave Configuration Mode. 
Revert the RTC to operational state.  */
void rtc_exit_config_mode(void)
{
	uint32_t reg32;
	RTC_CRL &= ~RTC_CRL_CNF;
	while ((reg32 = (RTC_CRL & RTC_CRL_RTOFF)) == 0);
}