From 6c832eeb88167696e9c320cbf5d38e74a1d34ad1 Mon Sep 17 00:00:00 2001 From: hg Date: Sun, 31 Aug 2014 18:29:46 +0200 Subject: [PATCH] changes --- src/uart.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uart.cpp b/src/uart.cpp index c092d61..06c3559 100644 --- a/src/uart.cpp +++ b/src/uart.cpp @@ -27,16 +27,16 @@ static inline void disableDataRegisterEmptyInterrupt() { void uartInit() { UCA0CTL1 |= UCSWRST; - P1SEL = BIT1 + BIT2; - P1SEL2 = BIT1 + BIT2; + P1SEL = BIT1 + BIT2; // select secondary function TX, RX + P1SEL2 = BIT1 + BIT2; // dti UCA0CTL0 |= UCPEN | UCPAR; // even parity UCA0CTL1 |= UCSSEL0; // ACLK - UCA0BR0 = 13; + UCA0BR0 = 13; // divider for 2400@32768 UCA0BR1 = 0; - UCA0MCTL = UCBRS1 | UCBRS2; + UCA0MCTL = UCBRS1 | UCBRS2; // modulator for 2400@32768 UCA0CTL1 &= ~UCSWRST;