[Bug 1915] New: Error in polling read USART on arm/at91
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Mon Sep 19 05:21:39 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1915
Summary: Error in polling read USART on arm/at91
Product: RTEMS
Version: 4.10
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: libcpu
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: nopscmn at gmail.com
Created attachment 1330
--> https://www.rtems.org/bugzilla/attachment.cgi?id=1330
Example patch
In function usart_read_polled from libcpu/arm/at91rm9200 used incorrect
registers and flags. From datasheet:
RXBUFF: Reception Buffer Full
0 = The signal Buffer Full from the Receive PDC channel is inactive.
1 = The signal Buffer Full from the Receive PDC channel is active.
must be:
RXRDY: Receiver Ready
0 = No complete character has been received since the last read of US_RHR or
the receiver is disabled. If characters were
being received when the receiver was disabled, RXRDY changes to 1 when the
receiver is enabled.
1 = At least one complete character has been received and US_RHR has not yet
been read.
and
US_THR - USART Transmit Holding Register
must be:
US_RHR - USART Receive Holding Register
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list