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