Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions bsp/ESP32_C3/.ci/attachconfig/ci.attachconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ devices.swi2c:
depends:
- devices.i2c
kconfig:
- CONFIG_BSP_USING_SW_I2C=y
- CONFIG_BSP_USING_SW_I2C0=y
- CONFIG_RT_USING_SOFT_I2C=y
- CONFIG_RT_USING_SOFT_I2C0=y
- CONFIG_RT_SOFT_I2C0_SCL_PIN=19
- CONFIG_RT_SOFT_I2C0_SDA_PIN=18
- CONFIG_RT_SOFT_I2C0_BUS_NAME="swi2c0"
devices.spi:
kconfig:
- CONFIG_RT_USING_SPI=y
Expand Down Expand Up @@ -60,4 +63,4 @@ devices.at:
- CONFIG_RT_USING_AT=y
- CONFIG_AT_USING_CLIENT=y
- CONFIG_RT_USING_SAL=y
- CONFIG_RT_USING_NETDEV=y
- CONFIG_RT_USING_NETDEV=y
20 changes: 1 addition & 19 deletions bsp/ESP32_C3/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,6 @@ menu "On-chip Peripheral Drivers"
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 Expand Up @@ -171,4 +153,4 @@ config BSP_ENABLE_GDBSTUB
bool "Enable ESP_GDBSTUB compontent"
default n

endmenu
endmenu
3 changes: 0 additions & 3 deletions bsp/ESP32_C3/drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,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_I2C1') or GetDepend('BSP_USING_HW_I2C3') or GetDepend('BSP_USING_HW_I2C4') or GetDepend('BSP_USING_HW_I2C6'):
src += ['drv_i2c.c']
Expand Down
Loading
Loading