Efficient way to process USART-received data and flush RX buffer ?
I have a transmitter over USART and an STM32H7 receiving data. The transmitter always writes N bytes at a slow repetition rate, i.e. every 1 second or more.Once N data are received by the STM32H7, for example using interrupt, the function HAL_UART_Rx...