R
rsk
Hi Friends,
I have defined a variable in file1.h as
#define BASE (0x00800000) // address of BASE
and i defined a pointer to the same variable in file2.h as
#define ibuf_base_ptr ((volatile uint *)IBUF_BASE)
Now my requirement is to change the following statements by using the
ibuf_base_ptr which i defined in file2.h
*((volatile uint *) 0x00850000) = 0x000a0041;
*((volatile uint *) 0x00850004) = 0x00870000;
can i do like this
*((volatile uint *)(*ibuf_base_ptr+0x50000)) = 0x000a0041;
*((volatile uint *)(*ibuf_base_ptr+0x50004)) = (*ibuf_base_ptr+70000);
Please help me .
With Regards,
ss
I have defined a variable in file1.h as
#define BASE (0x00800000) // address of BASE
and i defined a pointer to the same variable in file2.h as
#define ibuf_base_ptr ((volatile uint *)IBUF_BASE)
Now my requirement is to change the following statements by using the
ibuf_base_ptr which i defined in file2.h
*((volatile uint *) 0x00850000) = 0x000a0041;
*((volatile uint *) 0x00850004) = 0x00870000;
can i do like this
*((volatile uint *)(*ibuf_base_ptr+0x50000)) = 0x000a0041;
*((volatile uint *)(*ibuf_base_ptr+0x50004)) = (*ibuf_base_ptr+70000);
Please help me .
With Regards,
ss