24#define RTC_SECONDS 0x00
25#define RTC_MINUTES 0x02
30#define RTC_CENTURY 0x32
78void update_system_time(uint8 *second, uint8 *minute, uint8 *hour, uint8 *day, uint8 *month, uint16 *year);
This is a basic header files with FrostWing specific short forms and basically a good for life header...
Contains all the print functions.
Header file for Hardware Abstraction Layer -> Source from GoGX OS.
uint8 read_rtc_register(uint8 reg)
Reads the value from an RTC register.
uint8 bcd_to_bin(uint8 val)
Converts BDC to binary.
void display_time(void)
Displays time in an neat format.
void wait_rtc_update(void)
Wait till RTC is responding.
void update_system_time(uint8 *second, uint8 *minute, uint8 *hour, uint8 *day, uint8 *month, uint16 *year)
Updated the given variable with system time.
uint8 rtc_read_stable(uint8 reg)
Reads from a register without tick glitch (more stable).
void init_rtc(void)
Initializes the main RTC for use.
void sleep(int seconds)
Pauses the OS for set seconds. Use PIT for accuracy.