blob: 94dc6fb7a2679c3f9ddf4447319e25af749c027b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config EXAMPLES_PWM
bool "Pulse width modulation (PWM) example"
default n
depends on PWM && NSH_BUILTIN_APPS
---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 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"
default 5
---help---
The default PWM pulse train duration in seconds. Used only if the current
pulse count is zero (pulse count is only supported if PWM_PULSECOUNT
is not defined). Default: 5 seconds
config EXAMPLES_PWM_PULSECOUNT
int "Default pulse count"
default 0
depends on PWM_PULSECOUNT
---help---
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).
endif
|