1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu: msp430fxyz: uart: fixed port direction for USCI TX pin + minor typo in the comment

Signed-off-by: malo <malo@25cmsquare.io>
This commit is contained in:
malo 2016-03-15 00:08:23 +01:00
parent e70c5d416e
commit c9e6299f0f

View File

@ -124,7 +124,7 @@ ISR(UART_RX_ISR, isr_uart_0_rx)
__exit_isr();
}
/* we use alternative UART code in case the board used the USIC module for UART
/* we use alternative UART code in case the board used the USCI module for UART
* in case of the (older) USART module */
#else
@ -171,7 +171,7 @@ static int init_base(uart_t uart, uint32_t baudrate)
UART_RX_PORT->SEL |= UART_RX_PIN;
UART_TX_PORT->SEL |= UART_TX_PIN;
UART_RX_PORT->DIR &= ~(UART_RX_PIN);
UART_TX_PORT->DIR &= ~(UART_TX_PIN);
UART_TX_PORT->DIR |= UART_TX_PIN;
/* releasing the software reset bit starts the UART */
dev->ACTL1 &= ~(USCI_ACTL1_SWRST);
return 0;