Skip to content

Commit 1b76ecc

Browse files
kurisaWmysterywolf
authored andcommitted
[drivers] merge the software i2c driver
1 parent 97b9cc5 commit 1b76ecc

File tree

9 files changed

+727
-600
lines changed

9 files changed

+727
-600
lines changed

bsp/renesas/libraries/HAL_Drivers/SConscript

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ if GetDepend(['BSP_USING_WDT']):
2525
if GetDepend(['BSP_USING_ONCHIP_RTC']):
2626
src += ['drv_rtc.c']
2727

28-
if GetDepend(['BSP_USING_SOFT_I2C']):
29-
if GetDepend('BSP_USING_I2C0') or GetDepend('BSP_USING_I2C1') or GetDepend('BSP_USING_I2C2'):
30-
src += ['drv_soft_i2c.c']
31-
3228
if GetDepend(['BSP_USING_HW_I2C']):
3329
src += ['drv_i2c.c']
3430

bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c

Lines changed: 0 additions & 232 deletions
This file was deleted.

bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.h

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
devices.strict:
2+
depend_scons_arg:
3+
- '--strict'
4+
devices.gpio:
5+
depends:
6+
- devices.strict
7+
kconfig:
8+
- CONFIG_BSP_USING_GPIO=y
9+
devices.uart:
10+
kconfig:
11+
- CONFIG_BSP_USING_UART=y
12+
devices.soft_i2c:
13+
kconfig:
14+
- CONFIG_RT_USING_I2C=y
15+
- CONFIG_RT_USING_SOFT_I2C=y
16+
- CONFIG_RT_USING_SOFT_I2C0=y

0 commit comments

Comments
 (0)