Home
last modified time | relevance | path

Searched refs:uxCurrentSeconds (Results 1 – 1 of 1) sorted by relevance

/FreeRTOS-Plus-TCP-v4.0.0/tools/tcp_utilities/
HDNTPDemo.c386 time_t uxCurrentSeconds; in prvReadTime() local
398 uxCurrentSeconds = pxPacket->receiveTimestamp.seconds - TIME1970; in prvReadTime()
400 uxCurrentSeconds += uxCurrentMS / 1000; in prvReadTime()
407 FreeRTOS_set_secs_msec( &uxCurrentSeconds, &uxCurrentMS ); in prvReadTime()
409 if( uxCurrentSeconds >= uxPreviousSeconds ) in prvReadTime()
411 ilDiff = ( int32_t ) ( uxCurrentSeconds - uxPreviousSeconds ); in prvReadTime()
415 ilDiff = 0 - ( int32_t ) ( uxPreviousSeconds - uxCurrentSeconds ); in prvReadTime()
427 …uint32_t ulLowest = ( uxCurrentSeconds <= uxPreviousSeconds ) ? uxCurrentSeconds : uxPreviousSecon… in prvReadTime()
428 int32_t iCurMS = 1000 * ( uxCurrentSeconds - ulLowest ) + uxCurrentMS; in prvReadTime()
436 FreeRTOS_gmtime_r( &uxCurrentSeconds, &xTimeStruct ); in prvReadTime()
[all …]