Loading Makefile +9 −0 Original line number Diff line number Diff line Loading @@ -258,14 +258,23 @@ ifdef CONFIG_timer_freq COMMON_FLAGS += -DF_TIMER=${CONFIG_timer_freq} endif ifdef CONFIG_driver_softi2c_pullup-dynamic_internal softi2c_pullup=internal endif ifeq (${softi2c_pullup}, internal) COMMON_FLAGS += -DSOFTI2C_PULLUP_INTERNAL endif ifdef CONFIG_driver_softi2c_pullup_dynamic_external softi2c_pullup=external endif ifeq (${softi2c_pullup}, external) COMMON_FLAGS += -DSOFTI2C_PULLUP_EXTERNAL endif ifdef CONFIG_driver_softi2c_pullup_external softi2c_pullup=gpio endif ifeq (${softi2c_pullup}, gpio) COMMON_FLAGS += -DSOFTI2C_PULLUP_FIXED_GPIO endif Loading src/driver/Kconfig +25 −0 Original line number Diff line number Diff line Loading @@ -79,3 +79,28 @@ bool "Software I2C" select meta_driver_i2c endmenu choice driver_softi2c_pullup bool "SoftI2C Pull-Up Configuration" depends on driver_softi2c config driver_softi2c_pullup_none bool "No Pull-Up Handling" config driver_softi2c_pullup_dynamic_internal bool "Internal Dynamic Pull-Up" help Internal Pull-Up, disabled when transmitting LOW config driver_softi2c_pullup_dynamic_external bool "GPIO Dynamic Pull-Up" help Pull-Up resistors connected to GPIO, disabled when transmitting LOW config driver_softi2c_pullup_external bool "GPIO Static Pull-Up" help Pull-Up resistors connected to GPIO, always on endchoice Loading
Makefile +9 −0 Original line number Diff line number Diff line Loading @@ -258,14 +258,23 @@ ifdef CONFIG_timer_freq COMMON_FLAGS += -DF_TIMER=${CONFIG_timer_freq} endif ifdef CONFIG_driver_softi2c_pullup-dynamic_internal softi2c_pullup=internal endif ifeq (${softi2c_pullup}, internal) COMMON_FLAGS += -DSOFTI2C_PULLUP_INTERNAL endif ifdef CONFIG_driver_softi2c_pullup_dynamic_external softi2c_pullup=external endif ifeq (${softi2c_pullup}, external) COMMON_FLAGS += -DSOFTI2C_PULLUP_EXTERNAL endif ifdef CONFIG_driver_softi2c_pullup_external softi2c_pullup=gpio endif ifeq (${softi2c_pullup}, gpio) COMMON_FLAGS += -DSOFTI2C_PULLUP_FIXED_GPIO endif Loading
src/driver/Kconfig +25 −0 Original line number Diff line number Diff line Loading @@ -79,3 +79,28 @@ bool "Software I2C" select meta_driver_i2c endmenu choice driver_softi2c_pullup bool "SoftI2C Pull-Up Configuration" depends on driver_softi2c config driver_softi2c_pullup_none bool "No Pull-Up Handling" config driver_softi2c_pullup_dynamic_internal bool "Internal Dynamic Pull-Up" help Internal Pull-Up, disabled when transmitting LOW config driver_softi2c_pullup_dynamic_external bool "GPIO Dynamic Pull-Up" help Pull-Up resistors connected to GPIO, disabled when transmitting LOW config driver_softi2c_pullup_external bool "GPIO Static Pull-Up" help Pull-Up resistors connected to GPIO, always on endchoice