summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp/driver
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/msp430fr5994lp/driver')
-rw-r--r--include/arch/msp430fr5994lp/driver/counter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/arch/msp430fr5994lp/driver/counter.h b/include/arch/msp430fr5994lp/driver/counter.h
index 32369c3..816fc93 100644
--- a/include/arch/msp430fr5994lp/driver/counter.h
+++ b/include/arch/msp430fr5994lp/driver/counter.h
@@ -26,7 +26,9 @@ class Counter {
overflow = 0;
TA2CTL = TASSEL__SMCLK | ID__1 | MC__CONTINUOUS;
TA2EX0 = 0;
- TA2CTL |= TACLR | TAIE;
+ TA2CTL |= TACLR;
+ asm volatile("nop");
+ TA2CTL |= TAIE;
asm volatile("nop");
__eint();
asm volatile("nop");