clear the receive buffer

OP #7178963
Rate this post
useful
not useful
I'm using the HAL_UART_Receive_IT function on stm32f303re to recieve 
data. After each use I want to delete the content of the receive buffer 
so that the next data that will arrive will start at the first index of 
the array. Is there a function to delete the content of the receive 
buffer of the function HAL_UART_Receive_IT(&huart, buffer, 
sizeofbuffer)?

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now