I have the follow definitions of my registers :
typedef struct { unsigned int var1; unsigned int var2; unsigned int var3; } test;
#define pTest ((test *) 0x200000FF)
And to access the variables of the structure :
pTest->var1 = 0xAABBCCDD; pTest->var2 = 0xABCDEFAB; pTest->var3 = 0xAAAAAAAA;
I would like to write this definition : "#define pTest ((test *) 0x200000FF)" without the #define directive, so I've tried to write it as follow :
test *pTest; *pTest = 0x200000FF;
But it didn't work, could you help me?
Thanks in advance.