This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1000781] New: incomplete register flag declarations for AT91SPI status register
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Sat, 23 May 2009 18:01:42 +0100
- Subject: [Bug 1000781] New: incomplete register flag declarations for AT91SPI status register
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000781
Summary: incomplete register flag declarations for AT91 SPI
status register
Product: eCos
Version: 3.0
Platform: at91sam7xek_256 (AT91SAM7X-EK board with AT91SAM7X256)
OS/Version: ARM
Status: UNCONFIRMED
Severity: minor
Priority: normal
Component: HAL
AssignedTo: jifl@ecoscentric.com
ReportedBy: peter@niebert.com
QAContact: ecos-bugs@ecos.sourceware.org
Class: ---
Peter Niebert <peter@niebert.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flag| |Patch_or_Contribution?
Created an attachment (id=740)
--> (http://bugs.ecos.sourceware.org/attachment.cgi?id=740)
the modified file hal/arm/at91/var/current/include/var_io.h
hal/arm/at91/var/current/include/var_io.h lists a certain number of flags of
the SPI status register:
#define AT91_SPI_SR_RDRF 0x00000001 // Receive Data Register Full
#define AT91_SPI_SR_TDRE 0x00000002 // Tx Data Register Empty
#define AT91_SPI_SR_MODF 0x00000004 // Mode Fault Error
#define AT91_SPI_SR_OVRES 0x00000008 // Overrun Error Status
#define AT91_SPI_SR_ENDRX 0x00000010 // End of Receiver Transfer
#define AT91_SPI_SR_ENDTX 0x00000020 // End of Transmitter Transfer
For obcure reasons, the four remaining flags are not declared and should be
added as follows:
#define AT91_SPI_SR_RXBUFF 0x00000040 // RX Buffer Full
#define AT91_SPI_SR_TXBUFE 0x00000080 // TX Buffer Empty
#define AT91_SPI_SR_NSSR 0x00000100 // NSS Rising
#define AT91_SPI_SR_TXEMPTY 0x00000200 // Transmission Registers
Empty
Attached is the modified file hal/arm/at91/var/current/include/var_io.h
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.