rtc.c File Reference
#include <stdio.h>#include <string.h>#include <time.h>#include "rtc.h"#include "LPC17xx.h"#include "sys_config.h"
Include dependency graph for rtc.c:

Functions | |
| void | rtc_init (void) |
| Initialize the RTC. More... | |
| rtc_t | rtc_gettime (void) |
| void | rtc_settime (const rtc_t *rtc) |
| const char * | rtc_get_date_time_str (void) |
Function Documentation
| const char* rtc_get_date_time_str | ( | void | ) |
Get the RTC time as string in the format: "Wed Feb 13 15:46:11 2013"
- Returns
- the pointer to the time string (do not modify it)
- Warning
- This method is not thread safe
| rtc_t rtc_gettime | ( | void | ) |
- Returns
- the latest time in RTC structure
| void rtc_init | ( | void | ) |
Initialize the RTC.
| void rtc_settime | ( | const rtc_t * | rtcstruct | ) |
Sets the RTC time
- Parameters
-
[in] rtcstruct The rtc time structure pointer

1.8.11