Lines Matching refs:seconds
249 uint32_t seconds = tick >> N_PREDIV_S; in RtcTick2Ms() local
252 return ( ( seconds * 1000 ) + ( ( tick * 1000 ) >> N_PREDIV_S ) ); in RtcTick2Ms()
436 uint32_t seconds; in RtcGetCalendarValue() local
447 seconds = DIVC( ( DAYS_IN_YEAR * 3 + DAYS_IN_LEAP_YEAR ) * date->Year , 4 ); in RtcGetCalendarValue()
451 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
453 seconds += ( date->Date -1 ); in RtcGetCalendarValue()
456 seconds *= SECONDS_IN_1DAY; in RtcGetCalendarValue()
458 seconds += ( ( uint32_t )time->Seconds + in RtcGetCalendarValue()
462 calendarValue = ( ( ( uint64_t )seconds ) << N_PREDIV_S ) + ( PREDIV_S - time->SubSeconds ); in RtcGetCalendarValue()
475 uint32_t seconds = ( uint32_t )( calendarValue >> N_PREDIV_S ); in RtcGetCalendarTime() local
481 return seconds; in RtcGetCalendarTime()