BES_RXA
return ((uart_getreg(bas, REG_CTRL) & BES_RXA) != 0 ? 1 : 0);
while (!(uart_getreg(bas, REG_CTRL) & BES_RXA)) {
while (bes & BES_RXA) {