/* Reset the TX & RX, and clear the PDC counter.  */
static void usart_clear(void)
/* Reset the TX & RX, and clear the PDC counter.  */
static void usart_clear(void)
{
	usart_reset_rx(BOARD_USART);
	usart_reset_tx(BOARD_USART);
	g_st_packet.ul_addr = 0;
	g_st_packet.ul_size = 0;
	g_st_nextpacket.ul_addr = 0;
	g_st_nextpacket.ul_size = 0;
	pdc_rx_init(g_p_pdc, &g_st_packet, &g_st_nextpacket);
	usart_enable_tx(BOARD_USART);
	usart_enable_rx(BOARD_USART);
}