68 unsigned char seconds;
73 seconds = seconds & 0b01111111;
95 unsigned char minutes;
99 minutes = minutes & 0b01111111;
122 hours = hours & 0b00111111;
132 static unsigned char time[9];
138 time[1] = (value & 0b00001111)+48;
139 time[0] = (value >> 4)+48;
144 time[4] = (value & 0b00001111)+48;
145 time[3] = (value >> 4)+48;
150 time[7] = (value & 0b00001111)+48;
151 time[6] = (value >> 4)+48;
165 static unsigned char time[6];
171 time[1] = (value & 0b00001111)+48;
172 time[0] = (value >> 4)+48;
177 time[4] = (value & 0b00001111)+48;
178 time[3] = (value >> 4)+48;
206 days = days & 0b00111111;
226 unsigned char months;
230 months = months & 0b00011111;
260 static unsigned char date[9];
266 date[1] = (value & 0b00001111)+48;
267 date[0] = (value >> 4)+48;
272 date[4] = (value & 0b00001111)+48;
273 date[3] = (value >> 4)+48;
279 date[7] = (value & 0b00001111)+48;
280 date[6] = (value >> 4)+48;
295 seconds = seconds + alarm_enable;
307 minutes = minutes + alarm_enable;
320 hours = hours + alarm_enable;
331 days = days + alarm_enable;
371 value = value & 0xFE;
389 unsigned char minutes;
400 if ((minutes&0x0F) > (
unsigned char) 9 ) {
435 if ((hours&0x0F) > (
unsigned char) 9 ) {
470 if ((years&0x0F) > (
unsigned char) 9 ) {
494 unsigned char months;
505 if ((months&0x0F) > (
unsigned char) 9 ) {
539 if ((days&0x0F) > (
unsigned char) 9 ) {