The latest development version of this page may be more current than this released 2.7.5 version.

CONFIG_USB_DC_STM32

USB device controller driver for STM32 devices

Type: bool

Help

Enable USB support on the STM32 F0, F1, F2, F3, F4, F7, L0, L4 and G4 family of
processors.

Direct dependencies

(USB_DEVICE_DRIVER && SOC_FAMILY_STM32) || (SOC_FAMILY_STM32 && USB_DEVICE_DRIVER)

(Includes any dependencies from ifs and menus.)

Default

  • y

Symbols selected by this symbol

Kconfig definitions

At soc/arm/st_stm32/common/Kconfig.defconfig.series:55

Included via Kconfig:8Kconfig.zephyr:27soc/arm/st_stm32/Kconfig.defconfig:3

Menu path: (Top)

config USB_DC_STM32
    bool
    default y
    depends on USB_DEVICE_DRIVER && SOC_FAMILY_STM32

At drivers/usb/device/Kconfig:24

Included via Kconfig:8Kconfig.zephyr:42drivers/Kconfig:70drivers/usb/Kconfig:6

Menu path: (Top) → Device Drivers → Enable USB device controller drivers

config USB_DC_STM32
    bool "USB device controller driver for STM32 devices"
    select USE_STM32_LL_USB
    select USE_STM32_HAL_PCD
    select USE_STM32_HAL_PCD_EX
    depends on SOC_FAMILY_STM32 && USB_DEVICE_DRIVER
    help
      Enable USB support on the STM32 F0, F1, F2, F3, F4, F7, L0, L4 and G4 family of
      processors.

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