CODE Loop back 10 bytes of data

Table 1. CODE UART Code example
Loop back 10 bytes of data.
LPC_USART->CFG = UART_CFG_DATALEN(8)| UART_CFG_ENABLE;
for(i = 0; i < 10; i++) {
	while(~LPC_USART->STAT & (UART_STAT_TXRDY | UART_STAT_RXRDY));
	LPC_USART->TXDAT = LPC_USART->RXDAT;
}
while(~LPC_USART->STAT & UART_STAT_TXIDLE);

-->