zephyr/drivers/sensor/grove/Kconfig
Daniel Leung ab87df9f75 sensor: grove: fix cmake empty library warning
When there is no grove sensor driver enabled, cmake warns
that the library has no sources. Fix that by adding
a new kconfig to be used by CMake to selectively
include the grove directory.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-08-18 19:08:41 -05:00

28 lines
682 B
Plaintext

# Drivers configuration options for SeeedStudio Grove Devices
# Copyright (c) 2015 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config GROVE_SENSORS
bool "Seeed Grove sensors support"
help
Enable Seeed Grove sensors support.
if GROVE_SENSORS
config GROVE_LIGHT_SENSOR
bool "Enable the Seeed Grove Light Sensor"
depends on ADC && !MINIMAL_LIBC
help
Setting this value will enable driver support for the Grove Light
Sensor.
config GROVE_TEMPERATURE_SENSOR
bool "Enable the Seeed Grove Temperature Sensor"
depends on ADC && !MINIMAL_LIBC
help
Setting this value will enable driver support for the Grove
Temperature Sensor.
endif # GROVE_SENSORS