drivers/serial/uart_pl011.c : add the bitmask according to PL011 spec. (Although almost no problem.)
This commit is contained in:
parent
c93383407b
commit
d6445484fe
|
@ -762,9 +762,9 @@ static int pl011_receive(FAR struct uart_dev_s *dev,
|
|||
|
||||
rx = config->uart->dr;
|
||||
|
||||
*status = 0;
|
||||
*status = rx & 0xf00;
|
||||
|
||||
return rx;
|
||||
return rx & 0xff;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
|
|
Loading…
Reference in New Issue