2016-10-11 22:25:55 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "Buttons driver example"
|
2016-10-11 22:25:55 +02:00
|
|
|
default n
|
|
|
|
depends on ARCH_HAVE_BUTTONS
|
|
|
|
---help---
|
|
|
|
Enable the Buttons drivers example
|
|
|
|
|
|
|
|
if EXAMPLES_BUTTONS
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_PROGNAME
|
|
|
|
string "Program name"
|
|
|
|
default "buttons"
|
2018-08-23 19:06:15 +02:00
|
|
|
depends on BUILD_LOADABLE
|
2016-10-11 22:25:55 +02:00
|
|
|
---help---
|
|
|
|
This is the name of the program that will be use when the NSH ELF
|
|
|
|
program is installed.
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_PRIORITY
|
2017-05-21 18:51:26 +02:00
|
|
|
int "Button task priority"
|
2016-10-11 22:25:55 +02:00
|
|
|
default 100
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_STACKSIZE
|
2017-05-21 18:51:26 +02:00
|
|
|
int "Button stack size"
|
2016-10-11 22:25:55 +02:00
|
|
|
default 2048
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_DEVPATH
|
2017-05-21 18:51:26 +02:00
|
|
|
string "Button device path"
|
2016-10-11 22:25:55 +02:00
|
|
|
default "/dev/buttons"
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAMES
|
|
|
|
bool "Show Buttons Names"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable to show the button's name in the application.
|
|
|
|
|
|
|
|
if EXAMPLES_BUTTONS_NAMES
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_QTD
|
2017-02-16 18:00:43 +01:00
|
|
|
int "Number of Buttons in the Board"
|
|
|
|
default 8
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME0
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 0 Name"
|
|
|
|
default "BUTTON0"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME1
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 1 Name"
|
|
|
|
default "BUTTON1"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME2
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 2 Name"
|
|
|
|
default "BUTTON2"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME3
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 3 Name"
|
|
|
|
default "BUTTON3"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME4
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 4 Name"
|
|
|
|
default "BUTTON4"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME5
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 5 Name"
|
|
|
|
default "BUTTON5"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME6
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 6 Name"
|
|
|
|
default "BUTTON6"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_NAME7
|
2017-02-16 18:00:43 +01:00
|
|
|
string "Button 7 Name"
|
|
|
|
default "BUTTON7"
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
endif # EXAMPLES_BUTTONS_NAMES
|
|
|
|
endif # EXAMPLES_BUTTONS
|