Searched refs:rtc_time_reg (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/rtc/ |
D | rtc_smartbond.c | 157 uint32_t rtc_time_reg = 0; in rtc_time_to_bcd() local 159 RTC_TIME_REG_SET_FIELD(S, rtc_time_reg, bin2bcd(timeptr->tm_sec)); /*[0, 59]*/ in rtc_time_to_bcd() 160 RTC_TIME_REG_SET_FIELD(M, rtc_time_reg, bin2bcd(timeptr->tm_min)); /*[0, 59]*/ in rtc_time_to_bcd() 161 RTC_TIME_REG_SET_FIELD(HR, rtc_time_reg, bin2bcd(timeptr->tm_hour)); /*[0, 23]*/ in rtc_time_to_bcd() 163 return rtc_time_reg; in rtc_time_to_bcd() 187 uint32_t rtc_time_reg = RTC->RTC_TIME_REG; in bcd_to_rtc_time() local 189 timeptr->tm_sec = bcd2bin(RTC_TIME_REG_GET_FIELD(S, rtc_time_reg)); in bcd_to_rtc_time() 190 timeptr->tm_min = bcd2bin(RTC_TIME_REG_GET_FIELD(M, rtc_time_reg)); in bcd_to_rtc_time() 191 timeptr->tm_hour = bcd2bin(RTC_TIME_REG_GET_FIELD(HR, rtc_time_reg)); in bcd_to_rtc_time() 213 uint32_t rtc_time_reg, rtc_calendar_reg, rtc_status_reg; in rtc_smartbond_set_time() local [all …]
|