Allow compilation when portALT_GET_RUN_TIME_COUNTER_VALUE() is defined.

pull/4/head
Richard Barry 12 years ago
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…
Cancel
Save