rtt-f030/components/drivers/spi/SConscript

29 lines
633 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
from building import *
2014-07-31 14:42:37 +08:00
cwd = GetCurrentDir()
src = ['spi_core.c', 'spi_dev.c']
2013-01-08 22:40:58 +08:00
CPPPATH = [cwd + '/../include']
2014-07-31 14:42:37 +08:00
src_device = []
if GetDepend('RT_USING_SPI_WIFI'):
src_device += ['spi_wifi_rw009.c']
if GetDepend('RT_USING_W25QXX'):
src_device += ['spi_flash_w25qxx.c']
if GetDepend('RT_USING_ENC28J60'):
src_device += ['enc28j60.c']
if GetDepend('RT_USING_AT45DBXX'):
src_device += ['spi_flash_at45dbxx.c']
if GetDepend('RT_USING_SST25VFXX'):
src_device += ['spi_flash_sst25vfxx.c']
src += src_device
2013-01-08 22:40:58 +08:00
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SPI'], CPPPATH = CPPPATH)
Return('group')