Other Parts Discussed in Thread: SIMPLELINK-CC13X0-SDK, SYSBIOS
Hello.
I've been using CC1310 launcpad and learning the basics peripherals.
I've downloaded the sdk from 
I'm using this code for my UART test.
UART_Handle uart;
UART_Params uartParams; // Globals
uint8_t dummy_buf [5];
static void fnreadCallback(UART_Handle handle, void *rxBuf, size_t size)
{
dummy_buf [0] = ((uint8_t*)rxBuf)[0];
}
int main (void)
{
Board_initGeneral();
No_RTOS_start();
UART_init(); /*start the uart driver */
UART_Params_init(&uartParams);
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.writeMode = UART_MODE_BLOCKING;
uartParams.writeTimeout = UART_WAIT_FOREVER;
uartParams.readCallback = fnreadCallback;
uartParams.writeCallback = NULL;
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 115200;
uart = UART_open(Board_UART0, &uartParams);
if (uart == NULL) {
// UART_open() failed
while (1);
}
while(1)
{
UART_read(uart, rxBuf, 1);
}
}
With the above code i can get one one byte data into the dummy_buf. This was verified when i printed the contents of the dummy_buf.
Now the callback is working fine if i have the Uart_read() continuously in the while loop. Can i convert this code to work with Uart interrupt? What should i initialize in order to use UART interrupt?
Regards,
Nishit.