Most of these are from 'source'ing drivers/sensor/grove/Kconfig within
an 'if SENSOR' (in drivers/sensor/Kconfig), and then adding another 'if
SENSOR' within it.
'if FOO' is just shorthand for adding 'depends on FOO' to each item
within the 'if'. Dependencies on menus work similarly. There are no
"conditional includes" in Kconfig, so 'if FOO' has no special meaning
around a source. Conditional includes wouldn't be possible, because an
if condition could include (directly or indirectly) forward references
to symbols not defined yet.
Tip: When adding a symbol, check its dependencies in the menuconfig
('ninja menuconfig', then / to jump to the symbol). The menuconfig also
shows how the file with the symbol got included, so if you see
duplicated dependencies, it's easy to hunt down where they come from.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
86 lines
2.0 KiB
Plaintext
86 lines
2.0 KiB
Plaintext
# Kconfig - drivers configuration options for SeeedStudio Grove Devices
|
|
|
|
#
|
|
# Copyright (c) 2015 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
config GROVE_LIGHT_SENSOR
|
|
bool "Enable the Seeed Grove Light Sensor"
|
|
depends on ADC && NEWLIB_LIBC
|
|
help
|
|
Setting this value will enable driver support for the Grove Light
|
|
Sensor.
|
|
|
|
if GROVE_LIGHT_SENSOR
|
|
config GROVE_LIGHT_SENSOR_NAME
|
|
string "Driver name"
|
|
default "GROVE_LIGHT_SENSOR"
|
|
help
|
|
Specify the device name with which the sensor is identified.
|
|
|
|
config GROVE_LIGHT_SENSOR_ADC_DEV_NAME
|
|
string "ADC where Grove Light Sensor is connected"
|
|
default "ADC_0"
|
|
help
|
|
Specify the device name of the ADC to which the Grove Light Sensor
|
|
is connected.
|
|
|
|
config GROVE_LIGHT_SENSOR_ADC_CHANNEL
|
|
int "ADC channel used by Grove Light Sensor"
|
|
default 10
|
|
help
|
|
Specify the channel of the ADC to which the Grove Light Sensor is
|
|
connected.
|
|
endif
|
|
|
|
config GROVE_TEMPERATURE_SENSOR
|
|
bool "Enable the Seeed Grove Temperature Sensor"
|
|
depends on ADC && NEWLIB_LIBC
|
|
help
|
|
Setting this value will enable driver support for the Grove
|
|
Temperature Sensor.
|
|
|
|
if GROVE_TEMPERATURE_SENSOR
|
|
config GROVE_TEMPERATURE_SENSOR_NAME
|
|
string "Driver name"
|
|
default "GROVE_TEMPERATURE_SENSOR"
|
|
help
|
|
Specify the device name with which the Grove Temperature Sensor
|
|
is identified.
|
|
|
|
choice
|
|
prompt "Sensor version"
|
|
default GROVE_TEMPERATURE_SENSOR_V1_0
|
|
help
|
|
Choose the version of the Grove Temperature Sensor.
|
|
|
|
config GROVE_TEMPERATURE_SENSOR_V1_0
|
|
bool "v1.0"
|
|
help
|
|
Version 1.0
|
|
|
|
config GROVE_TEMPERATURE_SENSOR_V1_X
|
|
bool "v1.1/v1.2"
|
|
help
|
|
Version 1.1 or 1.2
|
|
|
|
endchoice
|
|
|
|
config GROVE_TEMPERATURE_SENSOR_ADC_DEV_NAME
|
|
string "ADC where Grove Temperature Sensor is connected"
|
|
default "ADC_0"
|
|
help
|
|
Specify the device name of the ADC to which the Grove Temperature
|
|
Sensor is connected.
|
|
|
|
config GROVE_TEMPERATURE_SENSOR_ADC_CHANNEL
|
|
int "ADC channel used by Grove Temperature Sensor"
|
|
default 10
|
|
help
|
|
Specify the channel of the ADC to which the Grove Temperature Sensor
|
|
is connected.
|
|
|
|
endif
|