Merge pull request #1266 from jiaooo/dev
change file name drv_iic to drv_i2c
This commit is contained in:
commit
03b8015413
|
@ -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_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.
|
# add gpio drivers.
|
||||||
if GetDepend('RT_USING_PIN'):
|
if GetDepend('RT_USING_PIN'):
|
||||||
|
@ -38,7 +42,7 @@ 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']
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* File : drv_iic.c
|
* File : drv_i2c.c
|
||||||
* This file is part of RT-Thread RTOS
|
* This file is part of RT-Thread RTOS
|
||||||
* COPYRIGHT (C) 2017 RT-Thread Develop Team
|
* COPYRIGHT (C) 2017 RT-Thread Develop Team
|
||||||
*
|
*
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
* 2017-06-05 tanek first implementation.
|
* 2017-06-05 tanek first implementation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "drv_iic.h"
|
#include "drv_i2c.h"
|
||||||
|
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <finsh.h>
|
#include <finsh.h>
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* File : drv_iic.c
|
* File : drv_i2c.h
|
||||||
* This file is part of RT-Thread RTOS
|
* This file is part of RT-Thread RTOS
|
||||||
* COPYRIGHT (C) 2017 RT-Thread Develop Team
|
* COPYRIGHT (C) 2017 RT-Thread Develop Team
|
||||||
*
|
*
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue