/* Get all the input characters */
while(UART_IS_RX_READY(UART))
{
/* Get the character from UART Buffer */
u8InChar = UART_READ(UART); /* Rx trigger level is 1 byte*/
if(u8InChar == '0')
{
g_bWait = FALSE;
}
/* Check if buffer full */
if(g_u32comRbytes < RXBUFSIZE)
{
/* Enqueue the character */
g_u8RecData[g_u32comRtail] = u8InChar;
g_u32comRtail = (g_u32comRtail == (RXBUFSIZE-1)) ? 0 : (g_u32comRtail+1);
g_u32comRbytes++;
}
}