mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-02 04:13:54 -04:00
Tidy up the run time stats generation in the MSP430X IAR port.
This commit is contained in:
parent
b41417d89b
commit
16daa60de7
4 changed files with 16 additions and 26 deletions
|
@ -110,7 +110,8 @@ inline unsigned long ulGetRunTimeStatsTime( void )
|
|||
unsigned long ulReturn;
|
||||
|
||||
TA1CTL &= ~MC__CONTINOUS;
|
||||
ulReturn = ( ( ulStatsOverflowCount << 16UL ) | ( unsigned long ) TA1R );
|
||||
ulReturn = ( ulStatsOverflowCount << 16UL );
|
||||
ulReturn |= ( unsigned long ) TA1R;
|
||||
TA1CTL |= MC__CONTINOUS;
|
||||
|
||||
return ulReturn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue