mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Merged in rnouse/nuttx (pull request #6)
[drivers/serial/uart_16550] Typo fix in data bits setup
This commit is contained in:
@@ -590,11 +590,11 @@ static int u16550_setup(struct uart_dev_s *dev)
|
|||||||
switch (priv->bits)
|
switch (priv->bits)
|
||||||
{
|
{
|
||||||
case 5 :
|
case 5 :
|
||||||
lcr |= UART_LCR_WLS_7BIT;
|
lcr |= UART_LCR_WLS_5BIT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6 :
|
case 6 :
|
||||||
lcr |= UART_LCR_WLS_7BIT;
|
lcr |= UART_LCR_WLS_6BIT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7 :
|
case 7 :
|
||||||
@@ -603,7 +603,7 @@ static int u16550_setup(struct uart_dev_s *dev)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
case 8 :
|
case 8 :
|
||||||
lcr |= UART_LCR_WLS_7BIT;
|
lcr |= UART_LCR_WLS_8BIT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user