!if 0
Copyright (c) Microsoft Corporation.  All rights reserved.
!endif
!if 0
Use of this source code is subject to the terms of the Microsoft end-user
license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
If you did not accept the terms of the EULA, you are not authorized to use
this source code. For a copy of the EULA, please see the LICENSE.RTF on your
install media.
!endif

!if "$(BSP_NOSPI)" == "1"
SKIPBUILD=1
!endif

SYNCHRONIZE_DRAIN=1

RELEASETYPE=PLATFORM

PREPROCESSDEFFILE=1

TARGETNAME=spi
TARGETTYPE=DYNLINK
DEFFILE=spi.def
DLLENTRY=DllMain

INCLUDES=$(INCLUDES);   \
		 $(_TARGETPLATROOT)\src\common\DMA ;\

TARGETLIBS= \
    $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib    \
    $(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib

SOURCELIBS= \
	$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\drvlib_mem.lib \
	$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\drvlib.lib \
	$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\dma_lib.lib\


#CDEFINES=$(CDEFINES) -DSPI_EX_GPIO_CALLBACK
CDEFINES=$(CDEFINES) -DSPI_MULTI_CH
CDEFINES=$(CDEFINES) -DSPI_COMM_STREAM_IF
CDEFINES=$(CDEFINES) -DUSE_SYSINTR_IN_REGISTRY
CDEFINES=$(CDEFINES) -DSPI_FULL_DUPLEX
#CDEFINES=$(CDEFINES) -DSPI_DEBUG
#CDEFINES=$(CDEFINES) -DSPI_TEST


SOURCES=    \
    spi.c\
    spi_Callback.c\

