Replace the function that returns the current run time counter value with a macro for easier inlining.

This commit is contained in:
Richard Barry 2011-01-06 10:06:09 +00:00
parent 12949b4507
commit f57fa8bf72
2 changed files with 32 additions and 22 deletions

View file

@ -102,19 +102,3 @@ interrupt void prvRunTimeStatsOverflowISR( void )
}
/*-----------------------------------------------------------*/
unsigned long ulGetRunTimeStatsTime( void )
{
unsigned long ulReturn;
unsigned short usCounterSnapshot;
TA1CTL &= ~MC__CONTINOUS;
_nop();
_nop();
ulReturn = ( ulStatsOverflowCount << 16UL );
usCounterSnapshot = TA1R;
ulReturn |= ( unsigned long ) usCounterSnapshot;
TA1CTL |= MC__CONTINOUS;
return ulReturn;
}
/*-----------------------------------------------------------*/