CONFIG_I2C_1_DEFAULT_CFG

Port 1 default configuration

Type: hex

Help

Allows the I2C port to be brought up with a default configuration. This is useful to set if other drivers depend upon using the I2C bus before the application has a chance to custom configure the port. Setting this value does not prohibit the application from customizing the values later. Refer to include/i2c.h file for proper values.

Direct dependencies

(I2C_1 && I2C_ESP32 && I2C) || (I2C_1 && !HAS_DTS_I2C && I2C)

(Includes any dependencies from ifs and menus.)

Defaults

  • 0x12
  • 0x0

Kconfig definitions

At drivers/i2c/Kconfig.esp32:50

Included via Kconfig:10Kconfig.zephyr:40drivers/Kconfig:38drivers/i2c/Kconfig:23

Menu path: (Top) → Device Drivers → I2C Drivers → ESP32 I2C

config I2C_1_DEFAULT_CFG
    hex
    default 0x12
    depends on I2C_1 && I2C_ESP32 && I2C

At drivers/i2c/Kconfig:78

Included via Kconfig:10Kconfig.zephyr:40drivers/Kconfig:38

Menu path: (Top) → Device Drivers → I2C Drivers → Enable I2C Port 1

config I2C_1_DEFAULT_CFG
    hex "Port 1 default configuration"
    default 0x0
    depends on I2C_1 && !HAS_DTS_I2C && I2C
    help
      Allows the I2C port to be brought up with a default configuration.
      This is useful to set if other drivers depend upon using the I2C bus
      before the application has a chance to custom configure the port.
      Setting this value does not prohibit the application from customizing
      the values later.  Refer to include/i2c.h file for proper values.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)