/******************************************************************************
 
   Copyright (C), 2013, Texas Instrument.
 
  ******************************************************************************
   File Name	 : SPI_Loopback_TEST.h
   Version		 : Initial Draft
   Author		 : Brighton Feng
   Created		 : 2013-3-5
   Last Modified : 
   Description	 : KeyStone2 SPI demo code
   History		 :
   1.Date		 : 2013-3-5
   Author 	 	 : Brighton Feng
   Modification: Created file
 
 ******************************************************************************/


#ifndef _KEYSTONEII_SPI_TEST_H_
#define _KEYSTONEII_SPI_TEST_H_

#include "K2_SPI_init_drv.h"

#define SPI_LOOP_TEST_BUF_SIZE 	(32*1024)


extern Uint16 spiRxBuf[SPI_LOOP_TEST_BUF_SIZE/2];
extern Uint16 spiTxBuf[SPI_LOOP_TEST_BUF_SIZE/2];
extern SPI_Data_Format loopbackDataFormat;
extern SPI_Transfer_Param loopbackTransferParam;

extern int SPI_loopback_test_one_time(Uint32 SPI_idx, Uint16 dataPattern);
extern void SPI_loopback_test(Uint32 SPI_idx);


#endif

