Add build configurations for small data model and small code model tests to the MSP430X CCS4 demo project.

This commit is contained in:
Richard Barry 2011-01-03 16:41:42 +00:00
parent 16daa60de7
commit 2c894e0f55
6 changed files with 265 additions and 59 deletions

View file

@ -105,9 +105,14 @@ interrupt void prvRunTimeStatsOverflowISR( void )
unsigned long ulGetRunTimeStatsTime( void )
{
unsigned long ulReturn;
unsigned short usCounterSnapshot;
TA1CTL &= ~MC__CONTINOUS;
ulReturn = ( ( ulStatsOverflowCount << 16UL ) | ( unsigned long ) TA1R );
_nop();
_nop();
ulReturn = ( ulStatsOverflowCount << 16UL );
usCounterSnapshot = TA1R;
ulReturn |= ( unsigned long ) usCounterSnapshot;
TA1CTL |= MC__CONTINOUS;
return ulReturn;