RTC Support
This commit is contained in:
+5
-1
@@ -164,7 +164,11 @@ void per10ms()
|
|||||||
#if defined(RTCLOCK)
|
#if defined(RTCLOCK)
|
||||||
/* Update gloabal Date/Time every 100 per10ms cycles */
|
/* Update gloabal Date/Time every 100 per10ms cycles */
|
||||||
if (++g_ms100 == 100) {
|
if (++g_ms100 == 100) {
|
||||||
g_rtcTime++; // inc global unix timestamp one second
|
if (g_rtcTime!=0) {
|
||||||
|
g_rtcTime++; // inc global unix timestamp one second
|
||||||
|
} else {
|
||||||
|
rtc_init();
|
||||||
|
}
|
||||||
g_ms100 = 0;
|
g_ms100 = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user