void USART_IRQHandler(void) { if (LPC_USART->IIR & (1 << 1)) { FLAG.u8_tx_empty = 1; } else if (LPC_USART->IIR & (2 << 1)) { uint8_t i; for (i = 0; i < 16; i++) { OTHER.u8_rx_buffer = LPC_USART->RBR; } }