2016-08-19 00:35:30 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
2018-03-04 22:35:07 +08:00
|
|
|
cwd = GetCurrentDir()
|
2016-08-19 00:35:30 +08:00
|
|
|
|
|
|
|
# add the general drivers.
|
|
|
|
src = Split("""
|
|
|
|
board.c
|
|
|
|
stm32f4xx_it.c
|
|
|
|
usart.c
|
|
|
|
""")
|
|
|
|
|
2018-10-04 15:45:13 +08:00
|
|
|
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')
|