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