diff options
author | Guillaume Knispel <gknispel@avencall.com> | 2012-08-23 18:44:14 +0200 |
---|---|---|
committer | Guillaume Knispel <gknispel@avencall.com> | 2012-08-23 18:44:14 +0200 |
commit | a9b31a06ac94b79c2ca4b9763d93acb31fa929a4 (patch) | |
tree | e9d221b4ce48523eeb0062d313a8f1ea36e81107 | |
parent | c14e25b58d8694f0c55a5b2a7a25ca5919fcb273 (diff) |
select UART function on corresponding pins
-rw-r--r-- | main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -74,8 +74,8 @@ volatile u8 bVCC3 = true; // For UCOS16 = 1 -// BRCLK Baud Rate UCBRx UCBRSx UCBRFx Tx Error Rx Error -// 12,000,000 115200 6 0 8 -1.8 0 -2.2 0.4 +// BRCLK Baud Rate UCBRx UCBRSx UCBRFx Tx Error Rx Error +// 12,000,000 115200 6 0 8 -1.8 0 -2.2 0.4 static void SerialInit(void) { UCA0CTL1_bit.UCSWRST = 1; @@ -87,6 +87,11 @@ static void SerialInit(void) UCA0MCTL = 0x81; // UCOS16 = 1; UCBRSx = 0; UCBRFx = 8; UCA0STAT = 0; + // Configure port for UART access + // Pin 25 as UCA0TXD + // Pin 26 as UCA0RXD + P3SEL |= 0x60; + UCA0CTL1_bit.UCSWRST = 0; } |