1 #ifndef __RTC_H 2 #define __RTC_H 3 4 #include <time.h> 5 6 int rtc_init(void); 7 int rtc_get_time(struct tm *t, int flags); /* read the hardware clock into t */ 8 int rtc_set_time(struct tm *t, int flags); /* set the hardware clock to t */ 9 int rtc_exit(void); 10 11 #endif /* __RTC_H */ 12