Minor updates to the MSP430X IAR demo application.

This commit is contained in:
Richard Barry 2011-01-02 18:17:22 +00:00
parent 8d532ab4a7
commit 947524522b
9 changed files with 33 additions and 30 deletions

View file

@ -78,8 +78,8 @@ void vConfigureTimerForRunTimeStats( void )
/* Ensure the timer is stopped. */
TA1CTL = 0;
/* Run the timer from the ACLK/4. */
TA1CTL = TASSEL_1 | ID__4;
/* Run the timer from the ACLK/2. */
TA1CTL = TASSEL_1 | ID__2;
/* Clear everything to start with. */
TA1CTL |= TACLR;
@ -90,6 +90,9 @@ void vConfigureTimerForRunTimeStats( void )
/* Start up clean. */
TA1CTL |= TACLR;
/* No overflows can have occurred yet. */
ulStatsOverflowCount = 0UL;
/* Continuous mode. */
TA1CTL |= MC__CONTINOUS;
}