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_PWM_NRF5_SW

Nordic Semiconductor nRF5x series S/W PWM

Type: bool

Help

Enable driver to utilize PWM on the Nordic Semiconductor nRF5x series.

When used with HF timer it provides up to 3 pins, utilizing two PPI
channels per pin and one GPIOTE config per pin.

When used with RTC it provides up to 3 pins, utilizing three PPI
channels per pin and one GPIOTE config per pin.

Direct dependencies

SOC_FAMILY_NRF && PWM

(Includes any dependencies from ifs and menus.)

Default

Kconfig definition

At drivers/pwm/Kconfig.nrf5_sw:6

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

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

config PWM_NRF5_SW
    bool "Nordic Semiconductor nRF5x series S/W PWM"
    default y if !PWM_NRFX
    depends on SOC_FAMILY_NRF && PWM
    help
      Enable driver to utilize PWM on the Nordic Semiconductor nRF5x series.

      When used with HF timer it provides up to 3 pins, utilizing two PPI
      channels per pin and one GPIOTE config per pin.

      When used with RTC it provides up to 3 pins, utilizing three PPI
      channels per pin and one GPIOTE config per pin.

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