Mar 21, 2003 #1 0 002 Member level 1 Joined Nov 12, 2001 Messages 32 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location Italia Activity points 162 avr pointer 0x1100 How do I initialize a pointer? char *SJA1000 = 0x1100; So it doesn't go.
Mar 21, 2003 #2 R revolt Full Member level 2 Joined Feb 3, 2002 Messages 120 Helped 4 Reputation 6 Reaction score 1 Trophy points 1,298 Activity points 1,008 hi, i also programming my avr in C: char* pointer; pointer=&array[0]; ^-adress of the first element of an array it works fine. regards.
hi, i also programming my avr in C: char* pointer; pointer=&array[0]; ^-adress of the first element of an array it works fine. regards.
Mar 21, 2003 #3 0 002 Member level 1 Joined Nov 12, 2001 Messages 32 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location Italia Activity points 162 I need to read from the address 0x1100.
Mar 22, 2003 #4 0 002 Member level 1 Joined Nov 12, 2001 Messages 32 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location Italia Activity points 162 This way it goes. char *SJA1000 = (char*)0x1100;