public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How do I get __ARMEB__ defined ?
@ 2000-12-10 19:23 Edward, Yan-Chi, Lin
  2000-12-11 13:36 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Edward, Yan-Chi, Lin @ 2000-12-10 19:23 UTC (permalink / raw)
  To: Ecos-Discuss


Hi

I have a bigendian ARM cpu now, but I don't know how do I get __ARMEB__ defined ?
Also could someone explain what does the macro in hal_io.h for big endian means ?
Why ^3 ?

Thanks a lot
Edward Lin
----------------------------------------------------------------------------------------------------
#else // Big-endian version

#define HAL_READ_UINT8( _register_, _value_ ) \
        ((_value_) = *((volatile CYG_BYTE *)((CYG_ADDRWORD)(_register_)^3)))

#define HAL_WRITE_UINT8( _register_, _value_ ) \
        (*((volatile CYG_BYTE *)((CYG_ADDRWORD)(_register_)^3)) = (_value_))


  	

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-13  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <NDBBIJMAFMCKGDEBEFICCEOCFAAA.yanchi@oak.com.tw>
2000-12-13  9:07 ` [ECOS] How do I get __ARMEB__ defined ? Jonathan Larmour
2000-12-10 19:23 Edward, Yan-Chi, Lin
2000-12-11 13:36 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).