aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MSP430-MSP430x1611-GCC/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC/board.c')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/board.c b/demos/MSP430-MSP430x1611-GCC/board.c
index e6ae187da..8fcecec17 100644
--- a/demos/MSP430-MSP430x1611-GCC/board.c
+++ b/demos/MSP430-MSP430x1611-GCC/board.c
@@ -74,9 +74,9 @@ void hwinit(void) {
/*
* Timer 0 setup, uses SMCLK as source.
*/
- TACCR0 = SMCLK / CH_FREQUENCY - 1; /* Counter limit. */
+ TACCR0 = SMCLK / 4 / CH_FREQUENCY - 1;/* Counter limit. */
TACTL = TACLR; /* Clean start. */
- TACTL = TASSEL_2 | MC_1; /* Src=SMCLK, cmp=TACCR0. */
+ TACTL = TASSEL_2 | ID_2 | MC_1; /* Src=SMCLK, ID=4, cmp=TACCR0. */
TACCTL0 = CCIE; /* Interrupt on compare. */
/*