Closed schweigstill closed 3 years ago
In HAL_UART_RxCpltCallback() there is the following code:
RingAdd(&mHandlers[i]->xBufferRX, mHandlers[i]->dataRX); HAL_UART_Receive_IT(mHandlers[i]->port, &mHandlers[i]->dataRX, 1);
Is this really the correct order? Shouldn't the dataRX buffer be filled by HAL_UART_Receive_IT() before it gets send to the ringbuffer?
My mistake: the call of 'HAL_UART_Receive_IT()' starts reception of the next character. So this issue can be removed.
In HAL_UART_RxCpltCallback() there is the following code:
RingAdd(&mHandlers[i]->xBufferRX, mHandlers[i]->dataRX); HAL_UART_Receive_IT(mHandlers[i]->port, &mHandlers[i]->dataRX, 1);
Is this really the correct order? Shouldn't the dataRX buffer be filled by HAL_UART_Receive_IT() before it gets send to the ringbuffer?