xdata access by #define

I have to read a flash written by another program and am provided a file looking like this

// data locations
#define data1 0
#define data2 data1+0x100
...

I would like to use the file 'as is" but all my typecasting efforts have resulted in errors or wrong code.

In advance, thanks

Erik

Parents Reply Children
No data
More questions in this forum