nuttx-apps/examples/comp/Kconfig
Daniel P. Carvalho 72cf59b647 examples/comp: add comparator example tool
Add a dedicated NSH tool for testing and interacting with analog
comparator devices (/dev/comp*). Supports reading comparator output
state, enabling/disabling via IOCTL, and performing an automated voltage
ramp sweep using a DAC device when available.

Assisted-by: Gemini:gemini-2.5-pro
Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
2026-09-15 16:09:24 +08:00

43 lines
1,007 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_COMP
tristate "Comparator tool"
default n
depends on COMP
---help---
Enable support for the comparator tool.
if EXAMPLES_COMP
config EXAMPLES_COMP_PROGNAME
string "Program name"
default "comp"
---help---
This is the name of the program that will be used in the shell
config EXAMPLES_COMP_PRIORITY
int "Comparator tool task priority"
default 100
config EXAMPLES_COMP_STACKSIZE
int "Comparator tool stack size"
default DEFAULT_TASK_STACKSIZE
config EXAMPLES_COMP_DEVPATH
string "Comparator device path"
default "/dev/comp0"
---help---
The default path to the comparator device. Default: /dev/comp0
config EXAMPLES_COMP_DACPATH
string "DAC device path for ramp test"
default "/dev/dac5" if ARCH_CHIP_STM32G4
default "/dev/dac0"
depends on DAC
---help---
The default path to the DAC device for generating a voltage ramp.
endif