bsp/stm32f429-apollo:fix drv_i2c.c scons build error

Signed-off-by: luo jiao <luojiaoxy@163.com>
This commit is contained in:
luo jiao 2018-03-11 13:39:31 +08:00
parent 59f05f68f2
commit 1afb706c4d
1 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,11 @@ if GetDepend('RT_USING_MTD_NAND'):
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
src += ['drv_eth.c', 'drv_i2c.c', 'drv_pcf8574.c']
src += ['drv_eth.c', 'drv_pcf8574.c']
# add i2c drivers.
if GetDepend(['RT_USING_I2C']) or GetDepend('RT_USING_LWIP'):
src += ['drv_i2c.c']
# add gpio drivers.
if GetDepend('RT_USING_PIN'):
@ -38,10 +42,6 @@ if GetDepend('RT_USING_SFUD'):
# add lcd drivers.
if GetDepend('PKG_USING_GUIENGINE'):
src += ['drv_lcd.c']
# add i2c drivers.
if GetDepend(['RT_USING_I2C']):
src += ['drv_i2c.c']
CPPPATH = [cwd]