/* USART IRQ Handler, handling RXBUFF and TXBUFE status.  */
void USART_Handler(void)
/* USART IRQ Handler, handling RXBUFF and TXBUFE status.  */
void USART_Handler(void)
{
	uint32_t ul_status;
	ul_status = usart_get_status(BOARD_USART);
	if ((ul_status & US_CSR_RXBUFF) && (g_uc_state == STATE_RECEIVE)) {
		g_ul_recv_done = true;
		usart_disable_interrupt(BOARD_USART, US_IDR_RXBUFF);
	}
	if ((ul_status & US_CSR_TXBUFE) && (g_uc_state == STATE_TRANSMIT)) {
		g_ul_sent_done = true;
		usart_disable_interrupt(BOARD_USART, US_IDR_TXBUFE);
	}
}