summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5969lp/driver/stdin.cc
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 19:33:18 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-27 19:33:18 +0100
commit2c26e3702413f62649f1aa38a407927df5f6fe30 (patch)
tree99bfe43bf9ea789f13a74b6bfc71f1398eb7ec44 /src/arch/msp430fr5969lp/driver/stdin.cc
parentb452e3f54fa46579182bc5e5fb993347e182d5a1 (diff)
msp430fr5969 stdin: increase buffer size; move initialization to stdin
Diffstat (limited to 'src/arch/msp430fr5969lp/driver/stdin.cc')
-rw-r--r--src/arch/msp430fr5969lp/driver/stdin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/driver/stdin.cc b/src/arch/msp430fr5969lp/driver/stdin.cc
index 0850dab..92b7157 100644
--- a/src/arch/msp430fr5969lp/driver/stdin.cc
+++ b/src/arch/msp430fr5969lp/driver/stdin.cc
@@ -8,6 +8,10 @@
void StandardInput::setup()
{
+ UCA0CTLW0 |= UCSWRST;
+ P2SEL0 &= ~BIT1;
+ P2SEL1 |= BIT1;
+ UCA0CTLW0 &= ~UCSWRST;
UCA0IE |= UCRXIE;
}