Go to the source code of this file.
Functions | |
void | F_RtcPowerOnInit (void) |
void | F_RtcSvc (void) |
void | F_RtcCurrentTimeSet () |
void | F_RtcCurrentTimeShow () |
INT8U | F_RtcEventCheck (void) |
void | F_RtcYearSet (INT8U Year) LargeReentrant |
void | F_RtcMonthSet (INT8U Month) LargeReentrant |
void | F_RtcDateSet (INT8U Date) LargeReentrant |
void | F_RtcHourSet (INT8U Hour) LargeReentrant |
void | F_RtcMinuteSet (INT8U Minute) LargeReentrant |
void | F_RtcSecondSet (INT8U Second) LargeReentrant |
void | F_RtcWeekDaySet (INT8U WeekDay) LargeReentrant |
void | F_RtcYearRead () |
void | F_RtcMonthRead () |
void | F_RtcDateRead () |
void | F_RtcHourRead () |
void | F_RtcMinuteRead () |
void | F_RtcSecondRead () |
void | F_RtcWeekDayRead () |
UCHAR | F_RtcRead (UCHAR Command) LargeReentrant |
void | F_RtcWrite (UCHAR Command, UCHAR Data) LargeReentrant |
void | F_RtcCommandSet (INT8U **pArgv, INT8U Argc) LargeReentrant |
Variables | |
sbit | RtcSclk = P2^0 |
sbit | RtcData = P2^1 |
sbit | RtcCe = P2^2 |
INT8U code | second [7] = {'s','e','c','o','n','d',0} |
INT8U code | minute [7] = {'m','i','n','u','t','e',0} |
INT8U code | hour [5] = {'h','o','u','r',0} |
INT8U code | date [5] = {'d','a','t','e',0} |
INT8U code | month [6] = {'m','o','n','t','h',0} |
INT8U code | year [5] = {'y','e','a','r',0} |
INT8U code | day [4] = {'d','a','y',0} |
INT8U code * | RtcCommandList [RTC_COMMAND_MAX] = {second,minute,hour,date,month,year,day} |
struct RTC_CONTROL | RtcCtrl |
struct RTC_EVENT | RtcEvent |
Definition at line 697 of file rtc.c.
References F_RtcDateSet(), F_RtcHourSet(), F_RtcMinuteSet(), F_RtcMonthSet(), F_RtcSecondSet(), F_RtcWeekDaySet(), F_RtcYearSet(), and RtcCommandList.
Referenced by F_ShellSvc().
void F_RtcCurrentTimeSet | ( | void | ) |
Definition at line 192 of file rtc.c.
References RTC_CONTROL::Date, F_RtcWrite(), RTC_CONTROL::Hour, RTC_CONTROL::Minute, RTC_CONTROL::Month, RtcCtrl, RTC_CONTROL::Second, RTC_CONTROL::WeekDay, and RTC_CONTROL::Year.
void F_RtcCurrentTimeShow | ( | void | ) |
Definition at line 201 of file rtc.c.
References RTC_CONTROL::Date, F_RtcRead(), RTC_CONTROL::Hour, LcmChar, RTC_CONTROL::Minute, RTC_CONTROL::Month, RtcCtrl, RTC_CONTROL::Second, RTC_CONTROL::WeekDay, and RTC_CONTROL::Year.
Referenced by F_RtcPowerOnInit(), and F_RtcSvc().
void F_RtcDateRead | ( | void | ) |
Definition at line 295 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcDateSet | ( | INT8U | Date | ) |
Definition at line 248 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
INT8U F_RtcEventCheck | ( | void | ) |
void F_RtcHourRead | ( | void | ) |
Definition at line 301 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcHourSet | ( | INT8U | Hour | ) |
Definition at line 255 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
void F_RtcMinuteRead | ( | void | ) |
Definition at line 307 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcMinuteSet | ( | INT8U | Minute | ) |
Definition at line 262 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
void F_RtcMonthRead | ( | void | ) |
Definition at line 289 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcMonthSet | ( | INT8U | Month | ) |
Definition at line 241 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
void F_RtcPowerOnInit | ( | void | ) |
Definition at line 36 of file rtc.c.
References RTC_EVENT::Data, RTC_CONTROL::Date, RTC_EVENT::EventType, F_RtcCurrentTimeShow(), F_RtcRead(), F_RtcWrite(), RTC_EVENT::HasEvent, RTC_CONTROL::Hour, RTC_CONTROL::Minute, RTC_CONTROL::Month, RtcCe, RtcCtrl, RtcData, RtcEvent, RtcSclk, RTC_EVENT::RwFlag, RTC_CONTROL::Second, RTC_CONTROL::State, RTC_CONTROL::Timer, RTC_CONTROL::WeekDay, and RTC_CONTROL::Year.
Referenced by F_SysPowerOnInit().
Definition at line 325 of file rtc.c.
References RTC_EVENT::Data, RtcCe, RtcData, and RtcSclk.
Referenced by F_RtcCurrentTimeShow(), F_RtcPowerOnInit(), and F_RtcSvc().
void F_RtcSecondRead | ( | void | ) |
Definition at line 313 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcSecondSet | ( | INT8U | Second | ) |
Definition at line 269 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
void F_RtcSvc | ( | void | ) |
Definition at line 77 of file rtc.c.
References RTC_EVENT::Data, RTC_CONTROL::Date, RTC_EVENT::EventType, F_RtcCurrentTimeShow(), F_RtcRead(), F_RtcWrite(), RTC_EVENT::HasEvent, RTC_CONTROL::Hour, LcmChar, RTC_CONTROL::Minute, RTC_CONTROL::Month, RtcCtrl, RtcEvent, RTC_EVENT::RwFlag, RTC_CONTROL::Second, RTC_CONTROL::State, RTC_CONTROL::Timer, RTC_CONTROL::WeekDay, and RTC_CONTROL::Year.
Referenced by F_SysPowerOnInit().
void F_RtcWeekDayRead | ( | void | ) |
Definition at line 319 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcWeekDaySet | ( | INT8U | WeekDay | ) |
Definition at line 276 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
Definition at line 501 of file rtc.c.
References RTC_EVENT::Data, RtcCe, RtcData, and RtcSclk.
Referenced by F_RtcCurrentTimeSet(), F_RtcPowerOnInit(), and F_RtcSvc().
void F_RtcYearRead | ( | void | ) |
Definition at line 283 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
void F_RtcYearSet | ( | INT8U | Year | ) |
Definition at line 234 of file rtc.c.
References RTC_EVENT::Data, RTC_EVENT::EventType, RTC_EVENT::HasEvent, RtcEvent, and RTC_EVENT::RwFlag.
Referenced by F_RtcCommandSet().
sbit RtcCe = P2^2 |
Definition at line 21 of file rtc.c.
Referenced by F_RtcPowerOnInit(), F_RtcRead(), and F_RtcWrite().
struct RTC_CONTROL RtcCtrl |
Definition at line 33 of file rtc.c.
Referenced by F_RtcCurrentTimeSet(), F_RtcCurrentTimeShow(), F_RtcPowerOnInit(), F_RtcSvc(), and IsrTimer0().
sbit RtcData = P2^1 |
Definition at line 20 of file rtc.c.
Referenced by F_RtcPowerOnInit(), F_RtcRead(), and F_RtcWrite().
Definition at line 34 of file rtc.c.
Referenced by F_RtcDateRead(), F_RtcDateSet(), F_RtcEventCheck(), F_RtcHourRead(), F_RtcHourSet(), F_RtcMinuteRead(), F_RtcMinuteSet(), F_RtcMonthRead(), F_RtcMonthSet(), F_RtcPowerOnInit(), F_RtcSecondRead(), F_RtcSecondSet(), F_RtcSvc(), F_RtcWeekDayRead(), F_RtcWeekDaySet(), F_RtcYearRead(), and F_RtcYearSet().
sbit RtcSclk = P2^0 |
Definition at line 19 of file rtc.c.
Referenced by F_RtcPowerOnInit(), F_RtcRead(), and F_RtcWrite().