This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

external reference to abs xdata

I am trying to come up with a method for defining absolute (MMIO) addresses once in my universal .h file.
DATAACT id defined in one .c file only

UX* is xdata unsigned char

My attempt:

#ifdef DATACT
#define UXRG(name,addr)             UX8 name _at_ addr;
#else
#define UXRG(name,addr)             extern UX8 name;
#endif

used as
UXRG (XRleds, 0xff00);

any suggestions ?

Erik