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 09:55:05 +00:00
parent 25bc4acc6a
commit 12949b4507
5 changed files with 39 additions and 39 deletions

View file

@ -102,29 +102,3 @@ static __interrupt void prvRunTimeStatsOverflowISR( void )
}
/*-----------------------------------------------------------*/
inline unsigned long ulGetRunTimeStatsTime( void )
{
unsigned long ulReturn;
TA1CTL &= ~MC__CONTINOUS;
if( ( TA1CTL & TAIFG ) != 0 )
{
/* An overflow has occurred but not yet been processed. */
ulStatsOverflowCount++;
/* Clear the interrupt. */
TA1CTL &= ~TAIFG;
}
else
{
__no_operation();
}
ulReturn = ( ulStatsOverflowCount << 16UL );
ulReturn |= ( unsigned long ) TA1R;
TA1CTL |= MC__CONTINOUS;
return ulReturn;
}
/*-----------------------------------------------------------*/