Searched refs:atm (Results 1 – 1 of 1) sorted by relevance
43 static void rtc_time_to_ambiq_time_set(const struct rtc_time *tm, am_hal_rtc_time_t *atm) in rtc_time_to_ambiq_time_set() argument46 atm->ui32Century = ((tm->tm_year <= 99) || (tm->tm_year >= 200)); in rtc_time_to_ambiq_time_set()48 atm->ui32CenturyBit = ((tm->tm_year > 99) && (tm->tm_year < 200)); in rtc_time_to_ambiq_time_set()50 atm->ui32Year = tm->tm_year; in rtc_time_to_ambiq_time_set()52 atm->ui32Year = tm->tm_year % 100; in rtc_time_to_ambiq_time_set()54 atm->ui32Weekday = tm->tm_wday; in rtc_time_to_ambiq_time_set()55 atm->ui32Month = tm->tm_mon + 1; in rtc_time_to_ambiq_time_set()56 atm->ui32DayOfMonth = tm->tm_mday; in rtc_time_to_ambiq_time_set()57 atm->ui32Hour = tm->tm_hour; in rtc_time_to_ambiq_time_set()58 atm->ui32Minute = tm->tm_min; in rtc_time_to_ambiq_time_set()[all …]