Example #1
0
int main(void)
{
	setup();
	ds.set_time(&t);
	while(1)
	{	
		ds.get_date_time(&t);
		ds.get_time(time);
		ds.get_date(date);
		uart3.printf("=======\r\n");
		uart3.printf("%02d-%02d-%02d %02d:%02d:%02d\r\n",t.year,t.month,t.date,t.hour,t.min,t.sec);

		uart3.printf(date);
		uart3.printf(" ");
		uart3.printf(time);
		uart3.printf("\r\n");
		delay_ms(1000);
	}


}