/* disable XDMAC for spi and forbidden transmit and receive by XDMAC.  */
static void spi_disable_xdmac(void)
/* disable XDMAC for spi and forbidden transmit and receive by XDMAC.  */
static void spi_disable_xdmac(void)
{
	 uint32_t xdmaint;
	xdmaint = (XDMAC_CIE_BIE |
		XDMAC_CIE_DIE   |
		XDMAC_CIE_FIE   |
		XDMAC_CIE_RBIE  |
		XDMAC_CIE_WBIE  |
		XDMAC_CIE_ROIE);
 	xdmac_channel_disable_interrupt(XDMAC, XDMAC_RX_CH, xdmaint);
 	xdmac_channel_disable(XDMAC, XDMAC_RX_CH);
 	xdmac_disable_interrupt(XDMAC, XDMAC_RX_CH);
	xdmac_channel_disable_interrupt(XDMAC, XDMAC_TX_CH, xdmaint);
	xdmac_channel_disable(XDMAC, XDMAC_TX_CH);
	xdmac_disable_interrupt(XDMAC, XDMAC_TX_CH);
	NVIC_ClearPendingIRQ(XDMAC_IRQn);
	NVIC_DisableIRQ(XDMAC_IRQn);
 }