FreeRTOS-Plus/Source/WolfSSL/wolfcrypt/src/asn.c
/*
 * time() is just a stub in Microchip libraries. We need our own
 * implementation. Use SNTP client to get seconds since epoch.
 */
time() is just a stub in Microchip libraries. We need our own
implementation. Use SNTP client to get seconds since epoch.
time () is just a stub in Microchip libraries . We need our own implementation . Use SNTP client to get seconds since epoch .
time_t pic32_time(time_t* timer)
{
#ifdef MICROCHIP_TCPIP_V5
    DWORD sec = 0;
#else
    uint32_t sec = 0;
#endif
    time_t localTime;
    if (timer == NULL)
        timer = &localTime;
#ifdef MICROCHIP_MPLAB_HARMONY
    sec = TCPIP_SNTP_UTCSecondsGet();
#else
    sec = SNTPGetUTCSeconds();
#endif
    *timer = (time_t) sec;
    return *timer;
}
time_t pic32_time ( time_t * timer ) { #ifdef MICROCHIP_TCPIP_V5 DWORD sec = 0 ; #else uint32_t sec = 0 ; #endif time_t localTime ; if ( timer == NULL ) timer = & localTime ; #ifdef MICROCHIP_MPLAB_HARMONY sec = TCPIP_SNTP_UTCSecondsGet ( ) ; #else sec = SNTPGetUTCSeconds ( ) ; #endif * timer = ( time_t ) sec ; return * timer ; }
time() is just a stub in Microchip libraries.
time () is just a stub in Microchip libraries .