summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5994lp/driver/stdout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/msp430fr5994lp/driver/stdout.cc')
-rw-r--r--src/arch/msp430fr5994lp/driver/stdout.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/msp430fr5994lp/driver/stdout.cc b/src/arch/msp430fr5994lp/driver/stdout.cc
index b3e8b4d..f3c219a 100644
--- a/src/arch/msp430fr5994lp/driver/stdout.cc
+++ b/src/arch/msp430fr5994lp/driver/stdout.cc
@@ -32,6 +32,12 @@ void StandardOutput::setup()
UCA0CTLW0 = UCSWRST | UCSSEL__SMCLK;
UCA0MCTLW = 0x5500;
UCA0BR0 = 8;
+#elif F_CPU == 32768UL
+ // Limited to 9600 Baud
+ // 32768 / 9600 == 3.413333 -> UCOS16 = 0, UCBR0 = 3, UCBRF0 = 0, UCBRS0 = 0x92 ("0.4003")
+ UCA0CTLW0 = UCSWRST | UCSSEL__SMCLK;
+ UCA0MCTLW = 0x9200;
+ UCA0BR0 = 3;
#else
#error Unsupported F_CPU
#endif