PERFORCE change 100215 for review
Warner Losh
imp at FreeBSD.org
Wed Jun 28 17:31:43 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100215
Change 100215 by imp at imp_lighthouse on 2006/06/28 17:08:42
Minor nits
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#29 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#29 (text+ko) ====
@@ -213,19 +213,17 @@
}
/*
- * Initialize this device (I think as the console)
+ * Initialize this device for use as a console.
*/
static void
at91_usart_init(struct uart_bas *bas, int baudrate, int databits, int stopbits,
int parity)
{
- int cr;
at91_usart_param(bas, baudrate, databits, stopbits, parity);
- /* Turn on rx and tx */
- cr = USART_CR_RSTSTA | USART_CR_RSTRX | USART_CR_RSTTX;
- WR4(bas, USART_CR, cr);
+ /* Reset the rx and tx buffers and turn on rx and tx */
+ WR4(bas, USART_CR, USART_CR_RSTSTA | USART_CR_RSTRX | USART_CR_RSTTX);
WR4(bas, USART_CR, USART_CR_RXEN | USART_CR_TXEN);
WR4(bas, USART_IDR, 0xffffffff);
}
More information about the p4-projects
mailing list