/* Write an byte to SPI Bus then read back an byte.  */
uint8_t SpiDrv_Transfer(uint8_t ucData)
/* Write an byte to SPI Bus then read back an byte.  */
uint8_t SpiDrv_Transfer(uint8_t ucData)
{
    unsigned long ucRecv = 0;
	while(xSPIIsTxEmpty(xSPI1_BASE) == xfalse);
	SPIDataPut(xSPI1_BASE, ucData);
	while(SPIIsRxNotEmpty(xSPI1_BASE) == xfalse);
	xSPIDataGet(xSPI1_BASE, &ucRecv);
	delay(0x5F);
	return (ucRecv);
}