Lines Matching refs:time
146 static uint64_t RtcGetCalendarValue( RTC_DateTypeDef* date, RTC_TimeTypeDef* time );
151 RTC_TimeTypeDef time; in RtcInit() local
173 time.Hours = 0; in RtcInit()
174 time.Minutes = 0; in RtcInit()
175 time.Seconds = 0; in RtcInit()
176 time.SubSeconds = 0; in RtcInit()
177 time.TimeFormat = 0; in RtcInit()
178 time.StoreOperation = RTC_STOREOPERATION_RESET; in RtcInit()
179 time.DayLightSaving = RTC_DAYLIGHTSAVING_NONE; in RtcInit()
180 HAL_RTC_SetTime( &RtcHandle, &time, RTC_FORMAT_BIN ); in RtcInit()
314 RTC_TimeTypeDef time = RtcTimerContext.CalendarTime; in RtcStartAlarm() local
320 rtcAlarmSubSeconds = PREDIV_S - time.SubSeconds; in RtcStartAlarm()
334 rtcAlarmHours = time.Hours; in RtcStartAlarm()
342 rtcAlarmMinutes = time.Minutes; in RtcStartAlarm()
350 rtcAlarmSeconds = time.Seconds + timeout; in RtcStartAlarm()
399 RtcAlarm.AlarmTime.TimeFormat = time.TimeFormat; in RtcStartAlarm()
412 RTC_TimeTypeDef time; in RtcGetTimerValue() local
415 uint32_t calendarValue = ( uint32_t )RtcGetCalendarValue( &date, &time ); in RtcGetTimerValue()
422 RTC_TimeTypeDef time; in RtcGetTimerElapsedTime() local
425 uint32_t calendarValue = ( uint32_t )RtcGetCalendarValue( &date, &time ); in RtcGetTimerElapsedTime()
430 static uint64_t RtcGetCalendarValue( RTC_DateTypeDef* date, RTC_TimeTypeDef* time ) in RtcGetCalendarValue() argument
442 HAL_RTC_GetTime( &RtcHandle, time, RTC_FORMAT_BIN ); in RtcGetCalendarValue()
457 seconds += ( ( uint32_t )time->Seconds + in RtcGetCalendarValue()
458 ( ( uint32_t )time->Minutes * SECONDS_IN_1MINUTE ) + in RtcGetCalendarValue()
459 ( ( uint32_t )time->Hours * SECONDS_IN_1HOUR ) ) ; in RtcGetCalendarValue()
461 calendarValue = ( ( ( uint64_t )seconds ) << N_PREDIV_S ) + ( PREDIV_S - time->SubSeconds ); in RtcGetCalendarValue()
468 RTC_TimeTypeDef time ; in RtcGetCalendarTime() local
472 uint64_t calendarValue = RtcGetCalendarValue( &date, &time ); in RtcGetCalendarTime()