syscall 0x02C0 : void RTC_GetTime( unsigned int*hour,
unsigned int*minute, unsigned int*second, unsigned int*millisecond
);
Reads the consistent time into hour, minute, second
and millisecond, resp.. The function repeats automatically when a
carry occurs. milliseconds is only as exact as the 1/128 second
base-tick allows.
syscall 0x02C1 : int RTC_GetTicks( void );
Returns the RTC-basecount in units of 1/128 s. The count restarts at zero
after midnight.
start_value has to be set with RTC_GetTicks.
duration_in_ms is the duration, which has to elapse since
start_value.
returns 0 if duration_in_ms has not elapsed yet
returns 1 if duration_in_ms has elapsed
Advantage: the routine does not block!
Special care has to be taken, when start_value has been set before
midnight and RTC_Elapsed_ms is called after midnight, because RTC_GetTicks
restarts at zero after midnight.
(08.08.2011 14:47:41)