[ECOS] Big endian ARM HAL_WRITE_UINT8 problem (ecos 1.3.1)
Dirk Sigurdson
dsigurds@pacbell.net
Wed Jul 10 14:43:00 GMT 2002
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
More information about the Ecos-discuss
mailing list