Code: Select all
/**
* @brief Stops any ongoing receive operation.
* @note Stopping a receive operation also suppresses the receive callbacks.
*
* @param[in] uartp pointer to the @p UARTDriver object
*
* @return The number of data frames not received by the
* stopped receive operation.
* @retval 0 There was no receive operation in progress.
*
* @api
*/
What happens when I start calling "uartStopReceive" and right at that moment, the buffer fills, i.e. 0 bytes remain to be put into the buffer?