Turnstone Operating System
Loading...
Searching...
No Matches
rtc.64.c File Reference

Real Time Clock driver. More...

#include <device/rtc.h>
#include <ports.h>
#include <acpi.h>

Macros

#define RTC_CURRENT_YEAR   2022
 
#define RTC_CMOS_ADDRESS   0x70
 
#define RTC_CMOS_DATA   0x71
 
#define RTC_REGISTER_SECONDS   0x00
 
#define RTC_REGISTER_MINUTES   0x02
 
#define RTC_REGISTER_HOURS   0x04
 
#define RTC_REGISTER_WEEKDAY   0x06
 
#define RTC_REGISTER_DAY   0x07
 
#define RTC_REGISTER_MONTH   0x08
 
#define RTC_REGISTER_YEAR   0x09
 
#define RTC_REGISTER_STATUS_A   0x0A
 
#define RTC_REGISTER_STATUS_B   0x0B
 

Functions

 MODULE ("turnstone.kernel.hw.rtc")
 
uint8_t rtc_is_in_update (void)
 
uint8_t rtc_read_register_value (uint16_t reg)
 
time_t rtc_get_time (void)
 

Detailed Description

Real Time Clock driver.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.