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

CONFIG_PWM_STM32

STM32 MCU PWM driver

Type: bool

Help

This option enables the PWM driver for STM32 family of
processors. Say y if you wish to use PWM port on STM32
MCU.

Direct dependencies

(PWM && SOC_FAMILY_STM32) || (SOC_FAMILY_STM32 && PWM)

(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:43

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

Menu path: (Top)

config PWM_STM32
    bool
    default y
    depends on PWM && SOC_FAMILY_STM32

At drivers/pwm/Kconfig.stm32:6

Included via Kconfig:8Kconfig.zephyr:42drivers/Kconfig:46drivers/pwm/Kconfig:32

Menu path: (Top) → Device Drivers → PWM (Pulse Width Modulation) Drivers

config PWM_STM32
    bool "STM32 MCU PWM driver"
    select USE_STM32_LL_TIM
    select USE_STM32_LL_RCC if SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X
    depends on SOC_FAMILY_STM32 && PWM
    help
      This option enables the PWM driver for STM32 family of
      processors. Say y if you wish to use PWM port on STM32
      MCU.

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