diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-02-11 16:20:29 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-02-11 16:20:35 +0100 |
commit | bf2721453cc6b82c8eee1a4304cd572970f22225 (patch) | |
tree | 322d3d6f0d3b2a1608ad58a94232dba02a3dbf00 /include | |
parent | b6206e83d10eb7e350b6ea17ab9f649a09332f52 (diff) |
msp430fr5994lp: correctly document clock rates
Diffstat (limited to 'include')
-rw-r--r-- | include/arch/msp430fr5994lp/driver/timer.h | 4 |
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; } |