Resets the RTC, if mode!=0 all registers are set to zero.
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
Returns 1/128 second ticks. 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.
resets alarm flag and enables alarm interrupt.
Sets the RTC time.
timestr and timestr: year in BCD (f. i. 0x20 0x08)
timestr: month in BCD (f. i. 0x03)
timestr: day in BCD (f. i. 0x02)
timestr: hour in BCD (f. i. 0x19)
timestr: minute in BCD (f. i. 0x47)
timestr: second in BCD (f. i. 0x03)
Day of week is set to zero.