date_time () syscall, Get date-time from RTC
This commit is contained in:
@@ -41,5 +41,6 @@
|
||||
#define SYS_GET_DEVICE_INFO 38
|
||||
#define SYS_GET_VOLUME_INFO 39
|
||||
#define SYS_VOLUME_DELETE 40
|
||||
#define SYS_DATE_TIME 41
|
||||
|
||||
#endif // _M_SYSCALL_DEFS_H
|
||||
|
||||
14
include/time.h
Normal file
14
include/time.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _TIME_H
|
||||
#define _TIME_H
|
||||
|
||||
struct date_time {
|
||||
int sec;
|
||||
int min;
|
||||
int hour;
|
||||
int day;
|
||||
int weekday;
|
||||
int month;
|
||||
int year;
|
||||
};
|
||||
|
||||
#endif // _TIME_H
|
||||
Reference in New Issue
Block a user