|void||set_time (time_t t)|
|Implementation of the C time.h functions. More...|
|void||attach_rtc (time_t(*read_rtc)(void), void(*write_rtc)(time_t), void(*init_rtc)(void), int(*isenabled_rtc)(void))|
|Attach an external RTC to be used for the C time functions. More...|
Attach an external RTC to be used for the C time functions.
|read_rtc||pointer to function which returns current UNIX timestamp|
|write_rtc||pointer to function which sets current UNIX timestamp, can be NULL|
|init_rtc||pointer to function which initializes RTC, can be NULL|
|isenabled_rtc||pointer to function which returns if the RTC is enabled, can be NULL|
Implementation of the C time.h functions.
Provides mechanisms to set and read the current time, based on the microcontroller Real-Time Clock (RTC), plus some standard C manipulation and formatting functions.
Set the current time
Initializes and sets the time of the microcontroller Real-Time Clock (RTC) to the time represented by the number of seconds since January 1, 1970 (the UNIX timestamp).
|t||Number of seconds since January 1, 1970 (the UNIX timestamp)|