nuttx-apps/examples/pwm/Kconfig
raiden00pl 2ad3e4e17b examples/pwm: remove refenrences to PULSECOUNT
Remove refenrences to PULSECOUNT from PWM example.
Pulse count driver will be handled by separate application.

Signed-off-by: raiden00pl <raiden00@railab.me>
2026-05-22 13:39:32 +08:00

137 lines
2.8 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_PWM
tristate "Pulse width modulation (PWM) example"
default n
depends on PWM
---help---
Enable the Pulse width modulation (PWM) example
if EXAMPLES_PWM
config EXAMPLES_PWM_DEVPATH
string "PWM device path"
default "/dev/pwm0"
---help---
The path to the PWM device. Default: /dev/pwm0
config EXAMPLES_PWM_FREQUENCY
int "Default PWM frequency"
default 100
---help---
The default PWM frequency. Default: 100 Hz
config EXAMPLES_PWM_DURATION
int "Default PWM duration"
default 5
---help---
The default PWM pulse train duration in seconds. Default: 5 seconds
config EXAMPLES_PWM_DUTYPCT1
int "First PWM duty percentage"
default 50
range 1 99
---help---
The first PWM duty as a percentage. Default: 50%
config EXAMPLES_PWM_CHANNEL1
int "First PWM channel number"
default 1
range -1 6
---help---
The first PWM channel number. Default: 1
if PWM_NCHANNELS = 2 || PWM_NCHANNELS = 3 || PWM_NCHANNELS = 4 || PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
config EXAMPLES_PWM_DUTYPCT2
int "Second PWM duty percentage"
default 50
range 1 99
---help---
The second PWM duty as a percentage. Default: 50%
config EXAMPLES_PWM_CHANNEL2
int "Second PWM channel number"
default 2
range -1 6
---help---
The second PWM channel number. Default: 2
endif
if PWM_NCHANNELS = 3 || PWM_NCHANNELS = 4 || PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
config EXAMPLES_PWM_DUTYPCT3
int "Third PWM duty percentage"
default 50
range 1 99
---help---
The third PWM duty as a percentage. Default: 50%
config EXAMPLES_PWM_CHANNEL3
int "Third PWM channel number"
default 3
range -1 6
---help---
The third PWM channel number. Default: 3
endif
if PWM_NCHANNELS = 4 || PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
config EXAMPLES_PWM_DUTYPCT4
int "Fourth PWM duty percentage"
default 50
range 1 99
---help---
The fourth PWM duty as a percentage. Default: 50%
config EXAMPLES_PWM_CHANNEL4
int "Fourth PWM channel number"
default 4
range -1 6
---help---
The fourth PWM channel number. Default: 4
endif
if PWM_NCHANNELS = 5 || PWM_NCHANNELS = 6
config EXAMPLES_PWM_DUTYPCT5
int "Fifth PWM duty percentage"
default 50
range 1 99
---help---
The fifth PWM duty as a percentage. Default: 50%
config EXAMPLES_PWM_CHANNEL5
int "Fifth PWM channel number"
default 5
range -1 6
---help---
The fifth PWM channel number. Default: 5
endif
if PWM_NCHANNELS = 6
config EXAMPLES_PWM_DUTYPCT6
int "Sixth PWM duty percentage"
default 50
range 1 99
---help---
The sixth PWM duty as a percentage. Default: 50%
config EXAMPLES_PWM_CHANNEL6
int "Sixth PWM channel number"
default 6
range -1 6
---help---
The sixth PWM channel number. Default: 6
endif
endif