This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_I2C_STM32_V2

(No prompt – not directly user assignable.)

Type: bool

Help

Enable I2C support on the STM32 F0, F3, F7, L4, WBX, MP1, G0, G4, WL and
H7 family of processors.
This driver also supports the L0 series.
If I2C_SLAVE is enabled it selects I2C_STM32_INTERRUPT, since slave mode
is only supported by this driver with interrupts enabled.

Direct dependencies

I2C_STM32 && I2C

(Includes any dependencies from ifs and menus.)

Default

  • n

Kconfig definition

At drivers/i2c/Kconfig.stm32:25

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:40drivers/i2c/Kconfig:38

Menu path: (Top) → Device Drivers → I2C Drivers → STM32 I2C driver

config I2C_STM32_V2
    bool
    default n
    select USE_STM32_LL_I2C
    select USE_STM32_LL_RCC if SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X
    select I2C_STM32_INTERRUPT if I2C_SLAVE
    depends on I2C_STM32 && I2C
    help
      Enable I2C support on the STM32 F0, F3, F7, L4, WBX, MP1, G0, G4, WL and
      H7 family of processors.
      This driver also supports the L0 series.
      If I2C_SLAVE is enabled it selects I2C_STM32_INTERRUPT, since slave mode
      is only supported by this driver with interrupts enabled.

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