mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-04 05:13:51 -04:00
Add build configurations for small data model and small code model tests to the MSP430X CCS4 demo project.
This commit is contained in:
parent
16daa60de7
commit
2c894e0f55
6 changed files with 265 additions and 59 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue