Skip to content

Commit

Permalink
[bsp][drivers][soft_i2c]:merge the software i2c driver
Browse files Browse the repository at this point in the history
  • Loading branch information
CYFS3 committed Jan 18, 2025
1 parent 2b82ab3 commit 9ac734e
Show file tree
Hide file tree
Showing 227 changed files with 1,836 additions and 12,104 deletions.
6 changes: 0 additions & 6 deletions bsp/ESP32_C3/.ci/attachconfig/ci.attachconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ devices.hwi2c:
- devices.i2c
kconfig:
- CONFIG_BSP_USING_HW_I2C=y
devices.swi2c:
depends:
- devices.i2c
kconfig:
- CONFIG_BSP_USING_SW_I2C=y
- CONFIG_BSP_USING_SW_I2C0=y
devices.spi:
kconfig:
- CONFIG_RT_USING_SPI=y
Expand Down
19 changes: 0 additions & 19 deletions bsp/ESP32_C3/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_HW_I2C
bool "Enable HardWare I2C"
default n

menuconfig BSP_USING_SW_I2C
bool "Enable SoftWare I2C"
default n
if BSP_USING_SW_I2C
config BSP_USING_SW_I2C0
bool "Enable SoftWare I2C0"
default n
if BSP_USING_SW_I2C0
config BSP_SW_I2C0_SDA_PIN
int "SWI2C0 sda pin number"
range 0 21
default 18
config BSP_SW_I2C0_SCL_PIN
int "SWI2C0 scl pin number"
range 0 21
default 19
endif
endif
endif

menuconfig BSP_USING_SPI
Expand Down
3 changes: 0 additions & 3 deletions bsp/ESP32_C3/drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ if GetDepend('BSP_USING_ADC'):

if GetDepend('BSP_USING_I2C'):
src += ['drv_hw_i2c.c']

if GetDepend('BSP_USING_SW_I2C'):
src += ['drv_sw_i2c.c']

if GetDepend('BSP_USING_PWM'):
src += ['drv_pwm.c']
Expand Down
199 changes: 0 additions & 199 deletions bsp/ESP32_C3/drivers/drv_sw_i2c.c

This file was deleted.

34 changes: 0 additions & 34 deletions bsp/ESP32_C3/drivers/drv_sw_i2c.h

This file was deleted.

4 changes: 0 additions & 4 deletions bsp/Infineon/libraries/HAL_Drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ if GetDepend(['RT_USING_SERIAL']):
else:
src += ['drv_uart.c']

if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']):
if GetDepend('BSP_USING_I2C1'):
src += ['drv_soft_i2c.c']

if GetDepend(['RT_USING_I2C']):
if GetDepend('BSP_USING_HW_I2C3') or GetDepend('BSP_USING_HW_I2C4') or GetDepend('BSP_USING_HW_I2C6'):
src += ['drv_i2c.c']
Expand Down
Loading

0 comments on commit 9ac734e

Please sign in to comment.