From 6f1b50a4cc6c232ee505a543f006abb1c6cd33cf Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 19 Feb 2021 23:41:56 -0500 Subject: rtc fixes, time command --- src/user/include/knob/time.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/user/include/knob/time.h (limited to 'src/user/include/knob/time.h') diff --git a/src/user/include/knob/time.h b/src/user/include/knob/time.h new file mode 100644 index 0000000..4b84697 --- /dev/null +++ b/src/user/include/knob/time.h @@ -0,0 +1,13 @@ +#include + +struct time { + uint16_t year;//ad + uint8_t month;//jan = 1 + uint8_t day; + uint8_t hour;//24-hour, midnight = 0 + uint8_t minute; + uint8_t second; + uint32_t timestamp; +}; + +struct time get_time(); \ No newline at end of file -- cgit v1.2.3