feat(core): implement Linux-grade architecture (printk with loglevels, list.h, errno.h, procfs, devfs, slab cache, CMOS RTC & 16550A UART serial)
This commit is contained in:
1 parent
2bbeb3f345
commit
1832e7ecff
19 files changed
+805
-6
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#ifndef AIRLYS_RTC_H
|
||||
#define AIRLYS_RTC_H
|
||||
|
||||
#include <airlys/types.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t second;
|
||||
uint8_t minute;
|
||||
uint8_t hour;
|
||||
uint8_t day;
|
||||
uint8_t month;
|
||||
uint16_t year;
|
||||
} rtc_time_t;
|
||||
|
||||
/* Initialize CMOS RTC Driver */
|
||||
void rtc_init(void);
|
||||
|
||||
/* Read current hardware real-time clock from CMOS */
|
||||
rtc_time_t rtc_get_time(void);
|
||||
|
||||
#endif /* AIRLYS_RTC_H */
|
||||
Reference in new issue
Block a user