nuttx-apps/examples/zerocross/Kconfig
wangchengdong d9afe2db8c signals: fix build and runtime issues when signals all isabled
Fix build and runtime issues when signals all disabled.

Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
2026-01-19 22:55:19 +08:00

23 lines
506 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_ZEROCROSS
tristate "Zero Cross Detection example"
default n
depends on SENSORS_ZEROCROSS && ENABLE_ALL_SIGNALS
---help---
Enable the zero cross detection example
if EXAMPLES_ZEROCROSS
config EXAMPLES_ZEROCROSS_DEVNAME
string "Zero Cross device name"
default "/dev/zc0"
config EXAMPLES_ZEROCROSS_SIGNO
int "Zero Cross signal"
default 32
endif