Other Parts Discussed in Thread: CC3220SF
Hi!
I'm using the CC3220SF with SDK Version 2.40.02.00. My project is based off of the FreeRTOS provisioning example. I am trying to use UART0 RX interrupt, but I can't get the callback function to run. I've configured my UART as shown in the InitTerm function below, and for now my callback function is just printing to the terminal that the callback was triggered. Basically, I need that callback function to run when a character is received over UART. It needs to be interrupt driven so that it does not interfere with other threads that are running.
UART_Handle InitTerm(void)
{
UART_Params uartParams;
UART_init();
UART_Params_init(&uartParams);
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 115200;
uartParams.readCallback = UART_Callback_Test;
uartHandle = UART_open(Board_UART0, &uartParams);
/* remove uart receive from LPDS dependency */
//UART_control(uartHandle, UART_CMD_RXDISABLE, NULL);
return(uartHandle);
}
void UART_Callback_Test(){
LOG_MESSAGE("UART Int Triggered");
}