Changeset dfdf7961 in rtems


Ignore:
Timestamp:
Sep 19, 2011, 7:01:02 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3fb73e22
Parents:
9f1412b9
Message:

2011-09-19 Andrei Mozzhuhin <nopscmn@…>

PR 1915/libcpu

  • at91rm9200/usart/usart.c: Fixed polled read.
Location:
c/src/lib/libcpu/arm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/ChangeLog

    r9f1412b9 rdfdf7961  
     12011-09-19      Andrei Mozzhuhin <nopscmn@gmail.com>
     2
     3        PR 1915/libcpu
     4        * at91rm9200/usart/usart.c: Fixed polled read.
     5
    162011-07-13      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • c/src/lib/libcpu/arm/at91rm9200/usart/usart.c

    r9f1412b9 rdfdf7961  
    123123
    124124  /* if nothing ready return -1 */
    125   if ( (usart->sr & US_IER_RXBUFF) == 0 )
    126     return -1;
    127 
    128   return usart->thr;
     125  if ( (usart->sr & US_IER_RXRDY) == 0 )
     126    return -1;
     127
     128  return usart->rhr;
    129129}
    130130
Note: See TracChangeset for help on using the changeset viewer.