Please check the code below in RCM4000

I have some data in “REG”.
If I copy some of my data to SPD0R(SLAVE Port Data Register) by using the following command
WrPortI(SPD0R,&SPD0RShadow,REG);
I get the error:
line 61 : WARNING PARALLEL 1.C : Wrong type for parameter 2.
line 61 : ERROR PARALLEL 1.C : Invalid expression - need lvalue.
line 61 : ERROR PARALLEL 1.C : SPD0RShadow is out of scope/ not declared.
Please suggest the solution for this.Hope to hear from you soon.

Hello,

This error is telling you that SPD0RShadow has not been defined anywhere. There is no shadow register defined for the SPD0R register. Use NULL instead for that parameter.