Hello,
is the data accessed through the rxcallback ISR safe. In my understanding the callback can either be called from the isr or from mainline if function UARTCC32XX_readCancel() is used. So if i am using uart readcancel do i have to secure the access to data provided by the callback from new ISR-call ? Or if i am save because next isr call is unlocked by UARTCC32XX_read() ?
I am using the following params for uart:
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.readCallback = &readCallback;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.writeCallback = writeCallback;
uartParams.baudRate = UART_BAUDRATE;
Best regards,