Lines Matching refs:seconds
248 uint32_t seconds = tick >> N_PREDIV_S; in RtcTick2Ms() local
251 return ( ( seconds * 1000 ) + ( ( tick * 1000 ) >> N_PREDIV_S ) ); in RtcTick2Ms()
435 uint32_t seconds; in RtcGetCalendarValue() local
446 seconds = DIVC( ( DAYS_IN_YEAR * 3 + DAYS_IN_LEAP_YEAR ) * date->Year , 4 ); in RtcGetCalendarValue()
450 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
452 seconds += ( date->Date -1 ); in RtcGetCalendarValue()
455 seconds *= SECONDS_IN_1DAY; in RtcGetCalendarValue()
457 seconds += ( ( uint32_t )time->Seconds + in RtcGetCalendarValue()
461 calendarValue = ( ( ( uint64_t )seconds ) << N_PREDIV_S ) + ( PREDIV_S - time->SubSeconds ); in RtcGetCalendarValue()
474 uint32_t seconds = ( uint32_t )( calendarValue >> N_PREDIV_S ); in RtcGetCalendarTime() local
480 return seconds; in RtcGetCalendarTime()