UTSR1_TO_SM
status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
while (status & UTSR1_TO_SM(UTSR1_RNE)) {
if (status & UTSR1_TO_SM(UTSR1_PRE | UTSR1_FRE | UTSR1_ROR)) {
if (status & UTSR1_TO_SM(UTSR1_PRE))
else if (status & UTSR1_TO_SM(UTSR1_FRE))
if (status & UTSR1_TO_SM(UTSR1_ROR))
if (status & UTSR1_TO_SM(UTSR1_PRE))
else if (status & UTSR1_TO_SM(UTSR1_FRE))
uart_insert_char(&sport->port, status, UTSR1_TO_SM(UTSR1_ROR), ch, flg);
status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
sport->port.read_status_mask |= UTSR1_TO_SM(UTSR1_ROR);
UTSR1_TO_SM(UTSR1_FRE | UTSR1_PRE);
UTSR1_TO_SM(UTSR1_FRE | UTSR1_PRE);
UTSR1_TO_SM(UTSR1_ROR);