forked from len0rd/rockbox
Add support for setting the clock using a special SCSI command. This is the same method that itunes uses, and there are host-side tools for it (e.g. libgpod)
Flyspray: FS#10514 Author: Laurent Papier and myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22255 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6cea3308d0
commit
ed73a3274c
3 changed files with 81 additions and 2 deletions
|
|
@ -29,6 +29,8 @@
|
|||
struct tm *get_time(void);
|
||||
int set_time(const struct tm *tm);
|
||||
bool valid_time(const struct tm *tm);
|
||||
int day_of_week(int m, int d, int y);
|
||||
void yearday_to_daymonth(int yd, int y, int *d, int *m);
|
||||
#if CONFIG_RTC
|
||||
time_t mktime(struct tm *t);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue