/* Set RTC prescalars. 
This sets the RTC synchronous and asynchronous prescalars.  */
void rtc_set_prescaler(uint32_t sync, uint32_t async)
/* Set RTC prescalars. 
This sets the RTC synchronous and asynchronous prescalars.  */
void rtc_set_prescaler(uint32_t sync, uint32_t async)
{
	RTC_PRER = (sync & RTC_PRER_PREDIV_S_MASK);
	RTC_PRER |= (async << RTC_PRER_PREDIV_A_SHIFT);
}