Lines Matching refs:date

147 static uint64_t RtcGetCalendarValue( RTC_DateTypeDef* date, RTC_TimeTypeDef* time );
151 RTC_DateTypeDef date; in RtcInit() local
167 date.Year = 0; in RtcInit()
168 date.Month = RTC_MONTH_JANUARY; in RtcInit()
169 date.Date = 1; in RtcInit()
170 date.WeekDay = RTC_WEEKDAY_MONDAY; in RtcInit()
171 HAL_RTC_SetDate( &RtcHandle, &date, RTC_FORMAT_BIN ); in RtcInit()
316 RTC_DateTypeDef date = RtcTimerContext.CalendarDate; in RtcStartAlarm() local
327 rtcAlarmDays = date.Date; in RtcStartAlarm()
378 if( date.Year % 4 == 0 ) in RtcStartAlarm()
380 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
382 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
387 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
389 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
414 RTC_DateTypeDef date; in RtcGetTimerValue() local
416 uint32_t calendarValue = ( uint32_t )RtcGetCalendarValue( &date, &time ); in RtcGetTimerValue()
424 RTC_DateTypeDef date; in RtcGetTimerElapsedTime() local
426 uint32_t calendarValue = ( uint32_t )RtcGetCalendarValue( &date, &time ); in RtcGetTimerElapsedTime()
431 static uint64_t RtcGetCalendarValue( RTC_DateTypeDef* date, RTC_TimeTypeDef* time ) in RtcGetCalendarValue() argument
442 HAL_RTC_GetDate( &RtcHandle, date, RTC_FORMAT_BIN ); in RtcGetCalendarValue()
447 seconds = DIVC( ( DAYS_IN_YEAR * 3 + DAYS_IN_LEAP_YEAR ) * date->Year , 4 ); in RtcGetCalendarValue()
449 …correction = ( ( date->Year % 4 ) == 0 ) ? DAYS_IN_MONTH_CORRECTION_LEAP : DAYS_IN_MONTH_CORRECTIO… in RtcGetCalendarValue()
451 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
453 seconds += ( date->Date -1 ); in RtcGetCalendarValue()
470 RTC_DateTypeDef date; in RtcGetCalendarTime() local
473 uint64_t calendarValue = RtcGetCalendarValue( &date, &time ); in RtcGetCalendarTime()