minix3/drivers/power/tps65950/rtc.h

12 lines
271 B
C
Raw Permalink Normal View History

2020-02-21 00:59:27 +05:30
#ifndef __RTC_H
#define __RTC_H
#include <time.h>
int rtc_init(void);
int rtc_get_time(struct tm *t, int flags); /* read the hardware clock into t */
int rtc_set_time(struct tm *t, int flags); /* set the hardware clock to t */
int rtc_exit(void);
#endif /* __RTC_H */