Dear Friends,
I want to use two UART ports at CC2530, I regad the following code, if I use HalUARTOpen (HAL_UART_PORT_0, &uartConfig); the function is right. but if I use HalUARTOpen (HAL_UART_PORT_1, &uartConfig); to configure UART,
I can't receive or send data at UART1.
So, how to configure two UART, please help. urgent. thanks.
void initUart(halUARTCBack_t pf)
{
halUARTCfg_t uartConfig;
uartConfig.configured = TRUE;
uartConfig.baudRate = HAL_UART_BR_38400;
uartConfig.flowControl = FALSE;
uartConfig.flowControlThreshold = 156;
uartConfig.rx.maxBufSize = 1024;
uartConfig.tx.maxBufSize = 1024;
uartConfig.idleTimeout = 255;
uartConfig.intEnable = TRUE;
uartConfig.callBackFunc = pf;
// HalUARTOpen (HAL_UART_PORT_0, &uartConfig);
HalUARTOpen (HAL_UART_PORT_1, &uartConfig);
}
Best Regard. Yihua