R
risha
hello,
Need to know how the pointer can be initailzed to a particular
location so that the value can be checked.
void FlashWrite1(volatile unsigned short *addr1,volatile unsigned short
*addr11,unsigned short ucVal )
{
unsigned short volatile *addr2;
(*addr2)=(0x7F12);
/* i get a warning that addr2 may not be initialized. I have tried
different ways but it is not happening. here addr2 needs to be initailzed
to 0x7f12 and the value passed by ucVal should be written into that
location
//&addr2=0x7F12;
addr2=&ucVal;
*addr2=ucVal;
*addr1=*addr2;/* writing into required address*/
*addr11=*addr2;/*writing into int flash*/
}
Need to know how the pointer can be initailzed to a particular
location so that the value can be checked.
void FlashWrite1(volatile unsigned short *addr1,volatile unsigned short
*addr11,unsigned short ucVal )
{
unsigned short volatile *addr2;
(*addr2)=(0x7F12);
/* i get a warning that addr2 may not be initialized. I have tried
different ways but it is not happening. here addr2 needs to be initailzed
to 0x7f12 and the value passed by ucVal should be written into that
location
//&addr2=0x7F12;
addr2=&ucVal;
*addr2=ucVal;
*addr1=*addr2;/* writing into required address*/
*addr11=*addr2;/*writing into int flash*/
}