task.
h
portTickType xTaskGetTickCount( void );
task.
h
portTickType xTaskGetTickCountFromISR( void );
This is a version of xTaskGetTickCount() that is safe to be called from an ISR - provided that portTickType is the natural word size of the microcontroller being used or interrupt nesting is either not supported or not being used.