71 unsigned char seconds;
76 seconds = seconds & 0b01111111;
98 unsigned char minutes;
102 minutes = minutes & 0b01111111;
125 hours = hours & 0b00111111;
135 static unsigned char time[9];
141 time[1] = (value & 0b00001111)+48;
142 time[0] = (value >> 4)+48;
147 time[4] = (value & 0b00001111)+48;
148 time[3] = (value >> 4)+48;
153 time[7] = (value & 0b00001111)+48;
154 time[6] = (value >> 4)+48;
168 static unsigned char time[6];
174 time[1] = (value & 0b00001111)+48;
175 time[0] = (value >> 4)+48;
180 time[4] = (value & 0b00001111)+48;
181 time[3] = (value >> 4)+48;
209 days = days & 0b00111111;
229 unsigned char months;
233 months = months & 0b00011111;
263 static unsigned char date[9];
269 date[1] = (value & 0b00001111)+48;
270 date[0] = (value >> 4)+48;
275 date[4] = (value & 0b00001111)+48;
276 date[3] = (value >> 4)+48;
282 date[7] = (value & 0b00001111)+48;
283 date[6] = (value >> 4)+48;
298 seconds = seconds + alarm_enable;
310 minutes = minutes + alarm_enable;
323 hours = hours + alarm_enable;
334 days = days + alarm_enable;
374 value = value & 0xFE;
392 unsigned char minutes;
403 if ((minutes&0x0F) > (
unsigned char) 9 ) {
438 if ((hours&0x0F) > (
unsigned char) 9 ) {
473 if ((years&0x0F) > (
unsigned char) 9 ) {
497 unsigned char months;
508 if ((months&0x0F) > (
unsigned char) 9 ) {
542 if ((days&0x0F) > (
unsigned char) 9 ) {