mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Allow compilation when portALT_GET_RUN_TIME_COUNTER_VALUE() is defined.
This commit is contained in:
parent
dac40d1677
commit
63e8044d33
|
@ -1515,7 +1515,11 @@ unsigned portBASE_TYPE uxTaskGetNumberOfTasks( void )
|
||||||
{
|
{
|
||||||
if( pulTotalRunTime != NULL )
|
if( pulTotalRunTime != NULL )
|
||||||
{
|
{
|
||||||
|
#ifdef portALT_GET_RUN_TIME_COUNTER_VALUE
|
||||||
|
portALT_GET_RUN_TIME_COUNTER_VALUE( ( *pulTotalRunTime ) );
|
||||||
|
#else
|
||||||
*pulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE();
|
*pulTotalRunTime = portGET_RUN_TIME_COUNTER_VALUE();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue