2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-06 18:45:52 +02:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
|
|
|
config EXAMPLES_PWM
|
|
|
|
bool "Pulse width modulation (PWM) example"
|
|
|
|
default n
|
2015-04-01 00:59:22 +02:00
|
|
|
depends on PWM && NSH_BUILTIN_APPS && LIB_BOARDCTL
|
|
|
|
select BOARDCTL_PWMTEST
|
2012-04-13 04:14:09 +02:00
|
|
|
---help---
|
|
|
|
Enable the Pulse width modulation (PWM) example
|
|
|
|
|
|
|
|
if EXAMPLES_PWM
|
2012-04-16 00:31:05 +02:00
|
|
|
|
|
|
|
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 freququency"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
The default PWM frequency. Default: 100 Hz
|
|
|
|
|
|
|
|
config EXAMPLES_PWM_DUTYPCT
|
|
|
|
int "Default PWM duty percentage"
|
|
|
|
default 50
|
|
|
|
---help---
|
|
|
|
The default PWM duty as a percentage. Default: 50%
|
|
|
|
|
|
|
|
config EXAMPLES_PWM_DURATION
|
|
|
|
int "Default PWM duration"
|
2013-09-06 02:30:39 +02:00
|
|
|
default 5
|
2012-04-16 00:31:05 +02:00
|
|
|
---help---
|
|
|
|
The default PWM pulse train duration in seconds. Used only if the current
|
2013-09-06 02:30:39 +02:00
|
|
|
pulse count is zero (pulse count is only supported if PWM_PULSECOUNT
|
|
|
|
is not defined). Default: 5 seconds
|
2012-04-16 00:31:05 +02:00
|
|
|
|
|
|
|
config EXAMPLES_PWM_PULSECOUNT
|
|
|
|
int "Default pulse count"
|
|
|
|
default 0
|
2013-09-06 02:30:39 +02:00
|
|
|
depends on PWM_PULSECOUNT
|
2012-04-16 00:31:05 +02:00
|
|
|
---help---
|
2013-09-06 02:30:39 +02:00
|
|
|
The initial PWM pulse count. This option is only available if
|
|
|
|
PWM_PULSECOUNT is defined. Default: 0 (i.e., use the duration, not
|
|
|
|
the count).
|
2012-04-16 00:31:05 +02:00
|
|
|
|
2012-04-13 04:14:09 +02:00
|
|
|
endif
|