00001
00002
00003
00004
00005 void WDTInit(void);
00006 void WdtFeed(void);
00007
00008 #ifdef RTC_INCLUDED
00009
00010 typedef struct {
00011 uint16 date_year;
00012 uint8 date_mon;
00013 uint8 date_day;
00014 uint8 date_dow;
00015 }Date;
00016
00017 typedef struct {
00018 uint8 time_hour;
00019 uint8 time_min;
00020 uint8 time_sec;
00021 uint8 time_ms;
00022 }Time;
00023
00024 void RTCInit(void);
00025 void GetDate(Date *today);
00026 void GetTime(Time *now);
00027 void SetDate(const Date *today);
00028 void SetTime(const Time *now);
00029 #endif
00030
00031
00032