nuttx-apps/examples/buttons/Kconfig
Gregory Nutt 8f5944c4a8 Squashed commit of the following:
include/ and netutils/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    nshlib/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    system/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    testing/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    examples/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
2019-04-29 14:53:38 -06:00

94 lines
1.8 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_BUTTONS
tristate "Buttons driver example"
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"
depends on BUILD_LOADABLE
---help---
This is the name of the program that will be use when the NSH ELF
program is installed.
config EXAMPLES_BUTTONS_PRIORITY
int "Button task priority"
default 100
config EXAMPLES_BUTTONS_STACKSIZE
int "Button stack size"
default 2048
config EXAMPLES_BUTTONS_DEVPATH
string "Button device path"
default "/dev/buttons"
config EXAMPLES_BUTTONS_NAMES
bool "Show Buttons Names"
default n
---help---
Enable to show the button's name in the application.
choice
prompt "Notification mechanism"
default EXAMPLES_BUTTONS_SIGNAL
config EXAMPLES_BUTTONS_SIGNAL
bool "Notify using signals"
config EXAMPLES_BUTTONS_POLL
bool "Notify using poll()"
depends on !DISABLE_POLL
endchoice
if EXAMPLES_BUTTONS_NAMES
config EXAMPLES_BUTTONS_QTD
int "Number of Buttons in the Board"
default 8
config EXAMPLES_BUTTONS_NAME0
string "Button 0 Name"
default "BUTTON0"
config EXAMPLES_BUTTONS_NAME1
string "Button 1 Name"
default "BUTTON1"
config EXAMPLES_BUTTONS_NAME2
string "Button 2 Name"
default "BUTTON2"
config EXAMPLES_BUTTONS_NAME3
string "Button 3 Name"
default "BUTTON3"
config EXAMPLES_BUTTONS_NAME4
string "Button 4 Name"
default "BUTTON4"
config EXAMPLES_BUTTONS_NAME5
string "Button 5 Name"
default "BUTTON5"
config EXAMPLES_BUTTONS_NAME6
string "Button 6 Name"
default "BUTTON6"
config EXAMPLES_BUTTONS_NAME7
string "Button 7 Name"
default "BUTTON7"
endif # EXAMPLES_BUTTONS_NAMES
endif # EXAMPLES_BUTTONS