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
}
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.
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
}