EW AVR and pointer - how to initialize it?

Status
Not open for further replies.

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.
 

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.
 

I need to read from the address 0x1100.
 

This way it goes.


char *SJA1000 = (char*)0x1100;
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…