Question
how to clear the receive buffer of HAL_UART_Receive_IT
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)?
