Home
last modified time | relevance | path

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

/FreeRTOS-Plus/Demo/Common/Demo_IP_Protocols/NTP/
A DNTPDemo.c267 time_t uxCurrentSeconds; in prvReadTime() local
279 uxCurrentSeconds = pxPacket->receiveTimestamp.seconds - TIME1970; in prvReadTime()
281 uxCurrentSeconds += uxCurrentMS / 1000; in prvReadTime()
288 FreeRTOS_set_secs_msec( &uxCurrentSeconds, &uxCurrentMS ); in prvReadTime()
290 if( uxCurrentSeconds >= uxPreviousSeconds ) in prvReadTime()
292 ilDiff = ( int32_t ) ( uxCurrentSeconds - uxPreviousSeconds ); in prvReadTime()
296 ilDiff = 0 - ( int32_t ) ( uxPreviousSeconds - uxCurrentSeconds ); in prvReadTime()
308 …uint32_t ulLowest = ( uxCurrentSeconds <= uxPreviousSeconds ) ? uxCurrentSeconds : uxPreviousSecon… in prvReadTime()
309 int32_t iCurMS = 1000 * ( uxCurrentSeconds - ulLowest ) + uxCurrentMS; in prvReadTime()
314 uxCurrentSeconds -= iTimeZone; in prvReadTime()
[all …]
/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_IPv6_Demo/common/NTP/
A DNTPDemo.c383 time_t uxCurrentSeconds; in prvReadTime() local
395 uxCurrentSeconds = pxPacket->receiveTimestamp.seconds - TIME1970; in prvReadTime()
397 uxCurrentSeconds += uxCurrentMS / 1000; in prvReadTime()
404 FreeRTOS_set_secs_msec( &uxCurrentSeconds, &uxCurrentMS ); in prvReadTime()
406 if( uxCurrentSeconds >= uxPreviousSeconds ) in prvReadTime()
408 ilDiff = ( int32_t ) ( uxCurrentSeconds - uxPreviousSeconds ); in prvReadTime()
424 …uint32_t ulLowest = ( uxCurrentSeconds <= uxPreviousSeconds ) ? uxCurrentSeconds : uxPreviousSecon… in prvReadTime()
433 FreeRTOS_gmtime_r( &uxCurrentSeconds, &xTimeStruct ); in prvReadTime()
437 gmtime_r( &uxCurrentSeconds, &xTimeStruct ); in prvReadTime()
458 ulNTPTime = uxCurrentSeconds; in prvReadTime()
[all …]

Completed in 7 milliseconds