Searched refs:rtc_date (Results 1 – 4 of 4) sorted by relevance
406 LL_RTC_DateTypeDef rtc_date; in rtc_stm32_set_time() local438 rtc_date.Year = bin2bcd((real_year - RTC_YEAR_REF)); in rtc_stm32_set_time()439 rtc_date.Month = bin2bcd((timeptr->tm_mon + 1)); in rtc_stm32_set_time()440 rtc_date.Day = bin2bcd(timeptr->tm_mday); in rtc_stm32_set_time()441 rtc_date.WeekDay = ((timeptr->tm_wday == 0) ? (LL_RTC_WEEKDAY_SUNDAY) : (timeptr->tm_wday)); in rtc_stm32_set_time()445 LL_RTC_DATE_Init(RTC, LL_RTC_FORMAT_BCD, &rtc_date); in rtc_stm32_set_time()479 uint32_t rtc_date, rtc_time; in rtc_stm32_get_time() local510 rtc_date = LL_RTC_DATE_Get(RTC); in rtc_stm32_get_time()520 } while (rtc_date != LL_RTC_DATE_Get(RTC)); in rtc_stm32_get_time()525 timeptr->tm_year = bcd2bin(__LL_RTC_GET_YEAR(rtc_date)) + (RTC_YEAR_REF - TM_YEAR_REF); in rtc_stm32_get_time()[all …]
236 uint32_t rtc_date, rtc_time; in rtc_stm32_read() local253 rtc_date = LL_RTC_DATE_Get(RTC); in rtc_stm32_read()264 } while (rtc_date != LL_RTC_DATE_Get(RTC)); in rtc_stm32_read()270 __LL_RTC_CONVERT_BCD2BIN(__LL_RTC_GET_YEAR(rtc_date)); in rtc_stm32_read()272 now.tm_mon = __LL_RTC_CONVERT_BCD2BIN(__LL_RTC_GET_MONTH(rtc_date)) - 1; in rtc_stm32_read()273 now.tm_mday = __LL_RTC_CONVERT_BCD2BIN(__LL_RTC_GET_DAY(rtc_date)); in rtc_stm32_read()
87 time.tm_mday = RTC_BCD_DECODE(data->registers.rtc_date.date); in decode_rtc()135 data->registers.rtc_date.date_one = time_buffer->tm_mday % 10; in encode_rtc()136 data->registers.rtc_date.date_ten = time_buffer->tm_mday / 10; in encode_rtc()
116 struct mcp7940n_rtc_date rtc_date; member