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.

使用I2C协议时,HWREG编译出错



使用I2C协议时,HWREG编译出错

已经define了

#ifndef __HW_TYPES_H__
#define __HW_TYPES_H__ //HWREG

也有#include"inc/hw_types.h"

但是 HWREG(I2C1_BASE + I2C_O_MCR) |= 0x01;  还是出错,expression must be a modefiable lvalue 而且说 function "HWREG" declared implicitly

不知道为什么啊?

顺便问一下,这句话有什么用啊,我刚刚接触I2C