mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-02-11 21:35:20 -08:00
Create cmos.h
Add a thing so that we can print CMOS backed clock time to the screen rtc etc
This commit is contained in:
18
kernel/cmos.h
Normal file
18
kernel/cmos.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef CMOS_H
|
||||
#define CMOS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user