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/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/arch/msp430fr5994lp/driver/timer.h b/include/arch/msp430fr5994lp/driver/timer.h
index c13d533..4f1a91a 100644
--- a/include/arch/msp430fr5994lp/driver/timer.h
+++ b/include/arch/msp430fr5994lp/driver/timer.h
@@ -59,11 +59,11 @@ class Timer {
inline void setup_hz(uint16_t const frequency) {
TA0CTL = TASSEL__SMCLK | _TA0_MAIN_DIV;
if (frequency < 32) {
- // 2 MHz base
+ // 250 kHz base
TA0EX0 = 7;
TA0CCR0 = 250000UL / frequency;
} else {
- // 250 kHz base
+ // 2 MHz base
TA0EX0 = 0;
TA0CCR0 = 2000000UL / frequency;
}