i have the memory address of certain register(the address LCDCW1 is C000).
c codes:
#define LCDCW1 0xC000 *LCDCW1=0x31;
i just want to write data to this register. The codes have problems, how to correct it?
thx!
Assuming that register has the same size as a long:
long
volatile long * ldccw1 = (long*)0xc000; *lcdcw1 = myValue;