ch372.c的文件中
void CH375_WR_CMD_PORT(unsigned int cmd) { /* 向CH375的命令端口寫(xiě)入命令 delay2us(); CH375_CMD_PORT=cmd; delay2us(); }
ch372.h的文件中 #define CH375_CMD_PORT 0x82000002 // 對(duì)CH372的命令口做讀寫(xiě)操作
當(dāng)編譯到 CH375_CMD_PORT=cmd; 時(shí) 出錯(cuò) illegal in the context of an l-value: 請(qǐng)問(wèn)怎么解決?