Best way to implement UART polling packet receiver.
Hi, I'm doing a firmware for a micro STM32F4.The micro is always in an infinite loop in the main(), at the end of each cycle it should check if there are any data on UART buffer, in case there are read all data and continue with the normal infinite l...