diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-02-11 17:17:23 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-02-11 17:17:23 +0100 |
commit | 77ac4971b3da88b6423db4287b3119a8f98be5da (patch) | |
tree | 48b94580db5d8b877a38161d7a43aa7367d99392 | |
parent | bf2721453cc6b82c8eee1a4304cd572970f22225 (diff) |
msp430fr5994lp: I think past-derf wanted to work around an erratum
-rw-r--r-- | include/arch/msp430fr5994lp/driver/counter.h | 4 |
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"); |