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"
|
|
|
|
---help---
|
2019-08-23 19:59:28 +02:00
|
|
|
This is the name of the program that will be used when the NSH ELF
|
2016-10-11 22:25:55 +02:00
|
|
|
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"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2016-10-11 22:25:55 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-04-29 22:53:38 +02:00
|
|
|
choice
|
|
|
|
prompt "Notification mechanism"
|
|
|
|
default EXAMPLES_BUTTONS_SIGNAL
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_SIGNAL
|
|
|
|
bool "Notify using signals"
|
|
|
|
|
|
|
|
config EXAMPLES_BUTTONS_POLL
|
|
|
|
bool "Notify using poll()"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2016-10-11 22:25:55 +02:00
|
|
|
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
|