55#
66# SPDX-License-Identifier: Apache-2.0
77#
8-
9-
10-
8+ if SENSOR
119config GROVE_LIGHT_SENSOR
1210 bool "Enable the Seeed Grove Light Sensor"
13- depends on SENSOR && GROVE && ADC && NEWLIB_LIBC
11+ depends on ADC && NEWLIB_LIBC
1412 help
1513 Setting this value will enable driver support for the Grove Light
1614 Sensor.
1715
16+ if GROVE_LIGHT_SENSOR
1817config GROVE_LIGHT_SENSOR_NAME
1918 string "Driver name"
20- depends on GROVE_LIGHT_SENSOR
2119 default "GROVE_LIGHT_SENSOR"
2220 help
2321 Specify the device name with which the sensor is identified.
2422
2523config GROVE_LIGHT_SENSOR_ADC_DEV_NAME
2624 string "ADC where Grove Light Sensor is connected"
27- depends on GROVE_LIGHT_SENSOR
2825 default "ADC_0"
2926 help
3027 Specify the device name of the ADC to which the Grove Light Sensor
3128 is connected.
3229
3330config GROVE_LIGHT_SENSOR_ADC_CHANNEL
3431 int "ADC channel used by Grove Light Sensor"
35- depends on GROVE_LIGHT_SENSOR
3632 default 10
3733 help
3834 Specify the channel of the ADC to which the Grove Light Sensor is
3935 connected.
36+ endif
4037
4138config GROVE_TEMPERATURE_SENSOR
4239 bool "Enable the Seeed Grove Temperature Sensor"
43- depends on SENSOR && GROVE && ADC && NEWLIB_LIBC
40+ depends on ADC && NEWLIB_LIBC
4441 help
4542 Setting this value will enable driver support for the Grove
4643 Temperature Sensor.
4744
45+ if GROVE_TEMPERATURE_SENSOR
4846config GROVE_TEMPERATURE_SENSOR_NAME
4947 string "Driver name"
50- depends on GROVE_TEMPERATURE_SENSOR
5148 default "GROVE_TEMPERATURE_SENSOR"
5249 help
5350 Specify the device name with which the Grove Temperature Sensor
5451 is identified.
5552
5653choice
5754 prompt "Sensor version"
58- depends on GROVE_TEMPERATURE_SENSOR
5955 default GROVE_TEMPERATURE_SENSOR_V1_0
6056 help
6157 Choose the version of the Grove Temperature Sensor.
@@ -74,16 +70,18 @@ endchoice
7470
7571config GROVE_TEMPERATURE_SENSOR_ADC_DEV_NAME
7672 string "ADC where Grove Temperature Sensor is connected"
77- depends on GROVE_TEMPERATURE_SENSOR
7873 default "ADC_0"
7974 help
8075 Specify the device name of the ADC to which the Grove Temperature
8176 Sensor is connected.
8277
8378config GROVE_TEMPERATURE_SENSOR_ADC_CHANNEL
8479 int "ADC channel used by Grove Temperature Sensor"
85- depends on GROVE_TEMPERATURE_SENSOR
8680 default 10
8781 help
8882 Specify the channel of the ADC to which the Grove Temperature Sensor
8983 is connected.
84+
85+ endif
86+
87+ endif
0 commit comments