From 77ac4971b3da88b6423db4287b3119a8f98be5da Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 11 Feb 2024 17:17:23 +0100 Subject: msp430fr5994lp: I think past-derf wanted to work around an erratum --- include/arch/msp430fr5994lp/driver/counter.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/arch/msp430fr5994lp') 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"); -- cgit v1.2.3