zephyr/drivers/pwm/Kconfig.nrf5_sw
Gaute Gamnes 121a9e41b2 drivers: pwm: nrf: Migrate SW PWM Kconfig options to DT
1. Kconfig option Clock prescaler removed.
2. Modified pwm_nrf5_sw.c driver to use DT
   defines instead of Kconfig, and also use new
   DT options (timer, ppi/gpiote, etc).
3. Cleanup some code.

Signed-off-by: Gaute Gamnes <gaute.gamnes@nordicsemi.no>
2019-03-12 13:34:01 +01:00

28 lines
741 B
Plaintext

# Kconfig.nrf5_sw - Nordic Semiconductor nRF5x s/w PWM configuration options
#
#
# Copyright (c) 2017 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig PWM_NRF5_SW
bool "Nordic Semiconductor nRF5x series S/W PWM"
default y if !PWM_NRFX
depends on SOC_FAMILY_NRF
help
Enable driver to utilize PWM on the Nordic Semiconductor nRF5x series.
This implementation provides up to 3 pins using one HF timer, two PPI
channels per pin and one GPIOTE config per pin.
if PWM_NRF5_SW
config PWM_NRF5_SW_0_DEV_NAME
string "Nordic Semiconductor nRF5x series S/W PWM Device Name"
default "PWM_0"
help
Specify the device name for the Nordic Semiconductor nRF5x series S/W
PWM driver.
endif # PWM_NRF5_SW