From ab4e1cfc8c587e4144d847bbd41307eff03130b2 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 16 Feb 2021 22:26:47 -0500 Subject: rtc timestamp, knob rand, random terminal color --- src/kernel/cmos.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/kernel/cmos.h (limited to 'src/kernel/cmos.h') diff --git a/src/kernel/cmos.h b/src/kernel/cmos.h new file mode 100644 index 0000000..53ec398 --- /dev/null +++ b/src/kernel/cmos.h @@ -0,0 +1,18 @@ +#ifndef CMOS_H +#define CMOS_H + +#include + +struct rtc_time { + uint8_t seconds; + uint8_t minutes; + uint8_t hours; + uint8_t day_of_week; + uint8_t day_of_month; + uint8_t month; + uint8_t year; +}; + +struct rtc_time get_rtc_time(); + +#endif \ No newline at end of file -- cgit v1.2.3