tick.cpp
// function that's safe to call from threads as well as ISRs
function that's safe to call from threads as well as ISRs
function that ' s safe to call from threads as well as ISRs
TickType_t GetTickCount()
{
    if(xPortIsInsideInterrupt())
    {
        return xTaskGetTickCountFromISR();
    }
    return xTaskGetTickCount();
}
TickType_t GetTickCount ( ) { if ( xPortIsInsideInterrupt ( ) ) { return xTaskGetTickCountFromISR ( ) ; } return xTaskGetTickCount ( ) ; }
function that's safe to call from threads as well as ISRs
function that ' s safe to call from threads as well as ISRs