我的问题是通用的,与任何特定的微控制器无关。下面是写入硬件寄存器地址的代码。在这段代码中,我试图写几个值,一个接一个。
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
以上需要更正吗?