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

Kconfig definitions

At <Zephyr>/soc/arm/st_stm32/common/Kconfig.defconfig.series:49

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:25<BuildDir>/Kconfig/Kconfig.soc.defconfig:1<Zephyr>/soc/arm/st_stm32/Kconfig.defconfig:3

Menu path: (Top)

config PWM_STM32
    bool
    default y
    depends on PWM && SOC_FAMILY_STM32

At <Zephyr>/drivers/pwm/Kconfig.stm32:6

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:44<Zephyr>/drivers/pwm/Kconfig:28

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.)