未验证 提交 03b80154 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1266 from jiaooo/dev

change file name drv_iic to drv_i2c
......@@ -21,7 +21,11 @@ if GetDepend('RT_USING_MTD_NAND'):
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
src += ['drv_eth.c', 'drv_iic.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,7 +42,7 @@ if GetDepend('RT_USING_SFUD'):
# add lcd drivers.
if GetDepend('PKG_USING_GUIENGINE'):
src += ['drv_lcd.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
......
/*
* File : drv_iic.c
* File : drv_i2c.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017 RT-Thread Develop Team
*
......@@ -12,7 +12,7 @@
* 2017-06-05 tanek first implementation.
*/
#include "drv_iic.h"
#include "drv_i2c.h"
#include <board.h>
#include <finsh.h>
......
/*
* File : drv_iic.c
* File : drv_i2c.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017 RT-Thread Develop Team
*
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册