This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

地址偏移

Other Parts Discussed in Thread: CONTROLSUITE

在controlSUITE的,device_support/F2837xD/v210/F2837xD_common/driverlib的can.c文件中,

HWREGH(ui32Base + CAN_O_IF1CMD + 2)

HWREGH是表示16位的数据,这里写CAN_IF1CMD的高16位不应该是加1吗?

我自己在程序里面测试,如果addr = 0x0100000;

HWREGH(addr  + 1)写入的值就是在0x0100001.