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.

6748 GPIO的SET CLR寄存器写入无效



代码如下:

#define HWREG(x)   (*((volatile unsigned int*)(x)))

HWREG(0x01E26018) = 1 << 18;         //SET_DATA01

HWREG(0x01E2601C) = 1 << 18;        //CLR_DATA01

分别将GPIO1[2]置高和拉低

这两行代码开始都有效的 今天用时发现引脚上没有电平跳变了

换成操作OUT_DATA01寄存器(0x01E26014)又能控制了 这是为什么?