I am using a CC1310 with TI-RTOS 2.15.0.17
From the documentation under Receive Continously in UART_MODE_CALLBACK the last part of the callback function is:
// Start another read, with size the same as it was during first call to
// UART_read()
UART_read(handle, rxBuf, wantedRxBytes);
The documentation for UART_read() states:
- Warning
- It is STRONGLY discouraged to call UART_read from its own callback function (UART_MODE_CALLBACK).
So which is correct, the warning or the example that contradicts it? If the sample is wrong, how should continuous reading be implemented for event driven communications?