forked from Imagelibrary/rtems
2011-09-19 Andrei Mozzhuhin <nopscmn@gmail.com>
PR 1915/libcpu * at91rm9200/usart/usart.c: Fixed polled read.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-09-19 Andrei Mozzhuhin <nopscmn@gmail.com>
|
||||
|
||||
PR 1915/libcpu
|
||||
* at91rm9200/usart/usart.c: Fixed polled read.
|
||||
|
||||
2011-07-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
PR 1832/libcpu
|
||||
|
||||
@@ -122,10 +122,10 @@ static int usart_read_polled(int minor)
|
||||
return -1;
|
||||
|
||||
/* if nothing ready return -1 */
|
||||
if ( (usart->sr & US_IER_RXBUFF) == 0 )
|
||||
if ( (usart->sr & US_IER_RXRDY) == 0 )
|
||||
return -1;
|
||||
|
||||
return usart->thr;
|
||||
return usart->rhr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user