/* Checks whether the specified UART interrupt has occurred or not.  */
ITStatus UART_GetITStatus(UART_TypeDef *uart, u16 it)
/* Checks whether the specified UART interrupt has occurred or not.  */
ITStatus UART_GetITStatus(UART_TypeDef *uart, u16 it)
{
    return (uart->ISR & it) ? SET : RESET;
}