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.

CCS/CC2640R2F: UART Interrupt

Part Number: CC2640R2F


Tool/software: Code Composer Studio

Hi,

I understood that if I use:

.......................................................

uartParams.readMode = UART_MODE_CALLBACK;
uartParams.readCallback = UartReadCallback;

......................................................

the UartReadCallback is called when I read  the uart with uart_read() and I receive data.

But I want call the uart_read() when I know that I'm receiving data.

For example, in project_zero is defined : 

PIN_registerIntCb(buttonPinHandle, &buttonCallbackFxn)

to enable an interrupt on the button, and so I read the state of button.

Alike, I want call the uart_read() only when receiving.

How can I do?

Thanks.

Best regard

Giuseppe