What you are trying to achieve by this, din't use technology 
for fun and fuzzles. Use it for something productive

Regards,
Mahesh Bhat


--- In [email protected], "krs_1980" <[EMAIL PROTECTED]> wrote:
>
> 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 as in file2.h
> 
> #define base_ptr  (volatile uint *) BASE)
> 
> Now my requirement is i have to change the following statements by
> using the 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);
> 
> I tried in so many ways but didn't get it.
> 
> Can you please help me .
> 
> 
> With Regards,
> ss...
>


Reply via email to