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);
You need to get rid of the trailing semicolon at the end of the #define line. none there, copy to forum error Erik