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.

C5000中 对寄存器直接定义使用,编译器报警告?

Expert 2137 points

我在函数之前定义了 #define EBSR *(ioport volatile  Uint16 *)0x1C00      //Pin-mux selection register

但是在函数中给EBSR 赋值的时候,旁边就出现了Syntax error,这样定义不合理吗?

有什么办法解决?