date_time () syscall, Get date-time from RTC
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
FORMAT = clang-format -i $$(git ls-files '*.c' '*.h' ':!malloc.c' ':!malloc.h' \
|
||||
':!\_fat.c' ':!\_fat.h' ':!\_fatctx.h')
|
||||
|
||||
DOCS_COLLECT = $$(git ls-files '*.c' '*.h' ':!\_fat.c' ':!\_fat.h' ':!\_fatctx.h' \
|
||||
':!malloc.c' ':!malloc.h')
|
||||
DOCS_COLLECT = $$(git ls-files '*.c' '*.h' ':!\_fat.c' ':!\_fat.h' ':!\_fatctx.h')
|
||||
|
||||
cflags += -DPRINTF_INCLUDE_CONFIG_H=1 -D"FAT_PRINTF(a)"
|
||||
|
||||
|
||||
@@ -124,3 +124,5 @@ int get_volume_info (struct volume_info* infos, size_t count) {
|
||||
}
|
||||
|
||||
int volume_delete (const char* key) { return (int)do_syscall (SYS_VOLUME_DELETE, key); }
|
||||
|
||||
int date_time (struct date_time* dt) { return (int)do_syscall (SYS_DATE_TIME, dt); }
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <proc_info.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
#include <volume_info.h>
|
||||
|
||||
/* Quit the current running process */
|
||||
@@ -129,4 +130,7 @@ int get_volume_info (struct volume_info* infos, size_t count);
|
||||
/* delete a volume */
|
||||
int volume_delete (const char* key);
|
||||
|
||||
/* Get date-time */
|
||||
int date_time (struct date_time* dt);
|
||||
|
||||
#endif // _LIBMSL_M_SYSTEM_H
|
||||
|
||||
Reference in New Issue
Block a user