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.
我用的按键是P0.7,LED是P1.0,1.1,1.2三个
发现这些脚在例程里已经用了,我应该怎么做避免冲突?
是从LED5开始定义还是工程里哪些地方有用到的我要屏蔽掉?
另外下面的XNV是做什么用的?
/* ----------- XNV ---------- */
#define XNV_SPI_BEGIN() st(P1_3 = 0;)
#define XNV_SPI_TX(x) st(U1CSR &= ~0x02; U1DBUF = (x);)
#define XNV_SPI_RX() U1DBUF
#define XNV_SPI_WAIT_RXRDY() st(while (!(U1CSR & 0x02));)
#define XNV_SPI_END() st(P1_3 = 1;)