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.

zigbee 协议栈只用串口1

如题,配置使用使用P04 P05作为串口1的IO失败,是否未开源的代码里有限制?或者该怎样配置?

PERCFG &= ~(0x01 << 1); // UART1选择到位置0,即P0口 P04 P05
PERCFG |= (0x01 << 0); // UART0选择到位置1,
P2SEL |= (0x01 << 6); // UART1优先
P2DIR |= (0x01 << 6); //01xx,xxxx
P2DIR &= ~(0x01 << 7);
P0SEL |= ((0x01 << 4) | (0x01 << 5));//外部功能