Init rtc and pic in kernel

This commit is contained in:
Byron Lathi
2023-11-19 22:11:29 -08:00
parent 7f01b79abf
commit 680bccee62
5 changed files with 281 additions and 17 deletions

16
sw/kernel/devices/rtc.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef _RTC_H
#define _RTC_H
#include <stdint.h>
#define RTC_CMD_ADDR 0xeffe
#define RTC_DAT_ADDR 0xefff
/* initialize RTC with default values */
void init_rtc(void);
/* handle RTC interrupts */
void handle_rtc(void);
#endif