summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp/driver
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-02-11 16:20:29 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-02-11 16:20:35 +0100
commitbf2721453cc6b82c8eee1a4304cd572970f22225 (patch)
tree322d3d6f0d3b2a1608ad58a94232dba02a3dbf00 /include/arch/msp430fr5994lp/driver
parentb6206e83d10eb7e350b6ea17ab9f649a09332f52 (diff)
msp430fr5994lp: correctly document clock rates
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;
}