We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
Shouldn't that be: pTest = 0x200000FF; Not *pTest = 0x200000FF;
??