Searched refs:DS1305_SEC (Results 1 – 1 of 1) sorted by relevance
33 #define DS1305_SEC 0x00 /* register addresses */ macro173 u8 addr = DS1305_SEC; in ds1305_get_time()188 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time()218 *bp++ = DS1305_WRITE | DS1305_SEC; in ds1305_set_time()289 addr = DS1305_ALM0(DS1305_SEC); in ds1305_get_alarm()296 "alm0 read", buf[DS1305_SEC], buf[DS1305_MIN], in ds1305_get_alarm()299 if ((DS1305_ALM_DISABLE & buf[DS1305_SEC]) in ds1305_get_alarm()308 alm->time.tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_alarm()354 buf[0] = DS1305_WRITE | DS1305_ALM0(DS1305_SEC); in ds1305_set_alarm()355 buf[1 + DS1305_SEC] = bin2bcd(alm->time.tm_sec); in ds1305_set_alarm()[all …]