/* RTC Enter Configuration Mode. 
Prime the RTC for configuration changes by giving access to the prescaler, and counter and alarm registers.  */
void rtc_enter_config_mode(void)
/* RTC Enter Configuration Mode. 
Prime the RTC for configuration changes by giving access to the prescaler, and counter and alarm registers.  */
void rtc_enter_config_mode(void)
{
	uint32_t reg32;
	while ((reg32 = (RTC_CRL & RTC_CRL_RTOFF)) == 0);
	RTC_CRL |= RTC_CRL_CNF;
}