被转换的类型建议用括号包含起来
#define WRITE32 (*(volatile uint32*) ((unsigned long) addr) = (uint32)(data))
建议改成 (*(volatile uint32*) ((unsigned long) (addr)) = (uint32)(data))
否则,在做WRITE32(addr + i)时,会出现访问预期之外的地址
被转换的类型建议用括号包含起来
#define WRITE32 (*(volatile uint32*) ((unsigned long) addr) = (uint32)(data))
建议改成 (*(volatile uint32*) ((unsigned long) (addr)) = (uint32)(data))
否则,在做WRITE32(addr + i)时,会出现访问预期之外的地址
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M