This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Big endian ARM HAL_WRITE_UINT8 problem
- From: Roland Caßebohm <roland dot cassebohm at visionsystems dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 26 Jul 2002 14:59:09 +0200
- Subject: [ECOS] Big endian ARM HAL_WRITE_UINT8 problem
Hello,
I want to use the generic 16x5x serial driver with a bigendian system
(ARM7TDMI). As discussed for a while, if I use the right baseaddress of the
external 16550 UART, the macros will get the wrong registers.
As an example: If little or big endian, in both systems the receive buffer is
at 0xXXXX000 and not on an big endian at 0xXXXX011.
Ok, I could change the baseaddress to 0xXXXX011, then the macros will access
the right registers, but if I do this and than switch to little endian it
won't work to.
Am I on the wrong way?
Roland
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss