STAT_RX_FIFO_EMPT
while (!(uart_getreg(bas, UART_STAT) & STAT_RX_FIFO_EMPT)) {
if (!(uart_getreg(bas, UART_STAT) & STAT_RX_FIFO_EMPT)) {