Tidy up the run time stats generation in the MSP430X IAR port.

This commit is contained in:
Richard Barry 2011-01-03 12:06:49 +00:00
parent b41417d89b
commit 16daa60de7
4 changed files with 16 additions and 26 deletions

View file

@ -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;