rt-thread/bsp/stm32f429-disco/drivers/SConscript

31 lines
530 B
Python
Raw Normal View History

2016-08-19 00:35:30 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
2016-08-19 00:35:30 +08:00
# add the general drivers.
src = Split("""
board.c
stm32f4xx_it.c
usart.c
""")
if GetDepend(['RT_USING_EXT_SDRAM']):
src += ['drv_sdram.c']
if GetDepend(['RT_USING_I2C']):
src += ['drv_i2c.c']
if GetDepend(['RT_USING_ILI9341_LCD']):
src += ['drv_lcd.c']
if GetDepend(['RT_USING_STMPE811_TOUCH']):
src += ['drv_touch.c']
2016-08-19 00:35:30 +08:00
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')