From 76e746273c8fb0dc8952a04de87ff23c14916466 Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Mon, 22 Mar 2010 23:19:36 -0400 Subject: Add a carriage return for println, remove it from the usart send routine. --- src/lib/usart.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib') diff --git a/src/lib/usart.c b/src/lib/usart.c index 0fd4e05..9987641 100644 --- a/src/lib/usart.c +++ b/src/lib/usart.c @@ -306,13 +306,13 @@ uint32 usart_data_available(uint8 usart_num) { /** - * @brief Output a character out the uart + * @brief Output a byte out the uart * * @param[in] usart_num usart number to output on - * @param[in] ch character to send + * @param[in] byte byte to send * */ -void usart_putc(uint8 usart_num, uint8 ch) { +void usart_putc(uint8 usart_num, uint8 byte) { ASSERT((usart_num <= NR_USARTS) && (usart_num > 0)); usart_port *port; @@ -331,11 +331,11 @@ void usart_putc(uint8 usart_num, uint8 ch) { ASSERT(0); } - if (ch == '\n') { - usart_putc(usart_num, '\r'); - } +// if (ch == '\n') { +// usart_putc(usart_num, '\r'); +// } - port->DR = ch; + port->DR = byte; /* Wait for transmission to complete */ while ((port->SR & USART_TXE) == 0) -- cgit v1.2.3