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 (ecos 1.3.1)
- From: Dirk Sigurdson <dsigurds at pacbell dot net>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 10 Jul 2002 14:43:46 -0700
- Subject: [ECOS] Big endian ARM HAL_WRITE_UINT8 problem (ecos 1.3.1)
I'm working with a big endian arm chip and am having problems with the
HAL_WRITE_UINT8 macro.
If I do something like:
#define HW_REG_ADDRESS \
((volatile cyg_uint8*) (0x0400c71f))
HAL_WRITE_UINT8(HW_REG_ADDRESS, 0xff);
It ends up writing to address 0x0400c71c and not 0x0400c71f. I could just
take the ^3 out of the macro, but am concerned that it might cause problems.
Does anyone have any suggestions?
Thanks,
Dirk
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss