diff options
author | Benji Dial <benji6283@gmail.com> | 2021-02-16 22:26:47 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-02-16 22:26:47 -0500 |
commit | ab4e1cfc8c587e4144d847bbd41307eff03130b2 (patch) | |
tree | 4e5502422977c747f3e65633ede26b73d9556ca1 /src/kernel/cmos.h | |
parent | 2de07a2abea4081ebab6d80729e5665ba862c74c (diff) | |
download | portland-os-ab4e1cfc8c587e4144d847bbd41307eff03130b2.tar.gz |
rtc timestamp, knob rand, random terminal color
Diffstat (limited to 'src/kernel/cmos.h')
-rw-r--r-- | src/kernel/cmos.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdint.h> + +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 |