UART_CheckIdleState
Hi,
Recently, while reviewing the code for USART handling, I came across the function UART_CheckIdleState. It is called at the end of the peripheral initialization. The name suggests that it checks the IDLE state, but the implementation does something else (checking the TEACK and REACK flag states). I looked a bit deeper and, apart from some differences in implementation, this pattern is repeated across different families of microcontrollers. So why such a name for this function?
Best,
msemegen
