Home
last modified time | relevance | path

Searched refs:SECONDS_BITS (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/rtc/
Drtc_ds1307.c28 #define SECONDS_BITS GENMASK(6, 0) macro
60 regs[0] = bin2bcd(tm->tm_sec) & SECONDS_BITS; in ds1307_set_time()
90 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in ds1307_get_time()
149 if (reg & ~SECONDS_BITS) { in ds1307_init()
152 reg & SECONDS_BITS); in ds1307_init()
Drtc_am1805.c48 #define SECONDS_BITS GENMASK(6, 0) macro
138 regs[0] = bin2bcd(tm->tm_sec) & SECONDS_BITS; in am1805_set_time()
188 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in am1805_get_time()
341 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in am1805_alarm_get_time()
408 regs[0] = bin2bcd(timeptr->tm_sec) & SECONDS_BITS; in am1805_alarm_set_time()
Drtc_rv8263.c59 #define SECONDS_BITS GENMASK(6, 0) macro
218 regs[1] = bin2bcd(timeptr->tm_sec) & SECONDS_BITS; in rv8263c8_time_set()
249 timeptr->tm_sec = bcd2bin(regs[0] & SECONDS_BITS); in rv8263c8_time_get()
425 regs[1] = bin2bcd(timeptr->tm_sec) & SECONDS_BITS; in rv8263c8_alarm_set_time()
494 timeptr->tm_sec = bcd2bin(value[0]) & SECONDS_BITS; in rv8263c8_alarm_get_time()