date_time () syscall, Get date-time from RTC
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 32s
Build documentation / build-and-deploy (push) Successful in 41s

This commit is contained in:
2026-04-12 21:13:20 +02:00
parent 6c01de8b0d
commit 245196b80f
12 changed files with 183 additions and 4 deletions

View File

@@ -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)"

View File

@@ -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); }

View File

@@ -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