10 void get_time(
int *hours,
int *minutes,
int *seconds)
15 *seconds = ((temp & 0xf0) >>4 ) *10 + (temp & 0x0f);
19 *minutes = ((temp & 0xf0) >>4 ) *10 + (temp & 0x0f);
23 *hours = ((temp & 0xf0) >>4 ) *10 + (temp & 0x0f);
33 void set_time(
int hours,
int minutes,
int seconds)
61 *day = ((temp & 0xf0) >>4 ) *10 + (temp & 0x0f);
65 *month = ((temp & 0xf0) >>4 ) *10 + (temp & 0x0f);
69 *year = ((temp & 0xf0) >>4 ) *10 + (temp & 0x0f);
void get_date(int *day, int *month, int *year)
get_date this function will retrieve the system date and place in three pointers
void get_time(int *hours, int *minutes, int *seconds)
get_time this function will retrieve the system time and place it in three pointers ...
void set_date(int day, int month, int year)
set_date sets the RTC Date
void set_time(int hours, int minutes, int seconds)
set_time sets the RTC time
#define DAY_OF_MONTH_INDEX