mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-04 05:13:51 -04:00
Replace the function that returns the current run time counter value with a macro for easier inlining.
This commit is contained in:
parent
12949b4507
commit
f57fa8bf72
2 changed files with 32 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue