2011-09-19 Andrei Mozzhuhin <nopscmn@gmail.com>

PR 1915/libcpu
	* at91rm9200/usart/usart.c: Fixed polled read.
This commit is contained in:
Sebastian Huber
2011-09-19 07:01:02 +00:00
parent 9f1412b9dc
commit dfdf7961e1
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}