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.

cc2538如何同时打开两个串口?代码里面只打开了1个HalUARTInitIsr,版本是Z-Stack Mesh 1.0.0

HAL_UART_USB 未定义,所以只打开了一个串口。

uint8 HalUARTOpen(uint8 port, halUARTCfg_t *config)
{
#if HAL_UART_USB
(void)port;
HalUARTOpenUSB(config);
return HAL_UART_SUCCESS;
#else
return(HalUARTOpenIsr(port, config));
#endif
}