From 644d9da7c883e7bef4598254fa0679a3cea5f001 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 28 Oct 2019 15:49:45 +0100 Subject: Added cmos based rtc date & time --- src/kernel/cmos/rtc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/kernel/cmos/rtc.h (limited to 'src/kernel/cmos/rtc.h') diff --git a/src/kernel/cmos/rtc.h b/src/kernel/cmos/rtc.h new file mode 100644 index 0000000..82ff86c --- /dev/null +++ b/src/kernel/cmos/rtc.h @@ -0,0 +1,15 @@ +#ifndef MELVIX_RTC_H +#define MELVIX_RTC_H + +unsigned char second; +unsigned char minute; +unsigned char hour; +unsigned char day; +unsigned char month; +unsigned int year; + +void read_rtc(); + +void write_time(); + +#endif -- cgit v1.2.3