提交 1afb706c 编写于 作者: L luo jiao

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

Signed-off-by: Nluo jiao <luojiaoxy@163.com>
上级 59f05f68
...@@ -21,7 +21,11 @@ if GetDepend('RT_USING_MTD_NAND'): ...@@ -21,7 +21,11 @@ if GetDepend('RT_USING_MTD_NAND'):
# add Ethernet drivers. # add Ethernet drivers.
if GetDepend('RT_USING_LWIP'): 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. # add gpio drivers.
if GetDepend('RT_USING_PIN'): if GetDepend('RT_USING_PIN'):
...@@ -38,10 +42,6 @@ if GetDepend('RT_USING_SFUD'): ...@@ -38,10 +42,6 @@ if GetDepend('RT_USING_SFUD'):
# add lcd drivers. # add lcd drivers.
if GetDepend('PKG_USING_GUIENGINE'): if GetDepend('PKG_USING_GUIENGINE'):
src += ['drv_lcd.c'] src += ['drv_lcd.c']
# add i2c drivers.
if GetDepend(['RT_USING_I2C']):
src += ['drv_i2c.c']
CPPPATH = [cwd] CPPPATH = [cwd]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册