My question is generic and not related to any specific microcontroller. Below is code for writing to a hardware register address. In this code, I'm trying to write several values, one after the other.
unsigned int *p; //declare a pointer
p = (int *) 0x200; //point to hardware register address
*p = 0x12; // write to hardware register address
*p = 0xA5; // write to hardware register address
*p = 0xff; // write to hardware register address
Does the above need any correction?