/* Reset the RTC. We setting the date back to . We also enable the oscillator output on the SQW/OUT pin and program it for 32,768 Hz output. Note that according to the datasheet, turning on the square wave output increases the current drain on the backup battery to something between 480nA and 800nA.  */
void rtc_reset(void)
/* Reset the RTC. We setting the date back to . We also enable the oscillator output on the SQW/OUT pin and program it for 32,768 Hz output. Note that according to the datasheet, turning on the square wave output increases the current drain on the backup battery to something between 480nA and 800nA.  */
void rtc_reset(void)
{
	rtc_write (RTC_SEC_REG_ADDR, 0x00);
	rtc_write (RTC_CTL_REG_ADDR, RTC_CTL_BIT_SQWE | RTC_CTL_BIT_RS1 | RTC_CTL_BIT_RS0);
}