From e750049556a9cb87d6c90b6f8c05045f0d19b2bd Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Wed, 28 Jan 2026 16:55:04 -0800 Subject: [PATCH] Create cmos.h Add a thing so that we can print CMOS backed clock time to the screen rtc etc --- kernel/cmos.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kernel/cmos.h diff --git a/kernel/cmos.h b/kernel/cmos.h new file mode 100644 index 0000000..35f926c --- /dev/null +++ b/kernel/cmos.h @@ -0,0 +1,18 @@ +#ifndef CMOS_H +#define CMOS_H + +#include + +typedef struct { + uint8_t second; + uint8_t minute; + uint8_t hour; + uint8_t day; + uint8_t month; + uint32_t year; +} cmos_time_t; + +void cmos_read_time(cmos_time_t* time); +void cmos_print_time(cmos_time_t* time); + +#endif