diff options
author | Bogdan Davidoaia <bogdan.m.davidoaia@intel.com> | 2016-05-09 12:01:04 +0300 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-05-12 12:11:04 +0000 |
commit | 2064f4a9cc0a418737ae0aa5e9e8cd451293f2e5 (patch) | |
tree | 890f8753648d8564a3a296d6eff3fa457a2e42b7 /drivers/grove/Kconfig | |
parent | 62c7a1338a042e757c57b44a7c9162a30c7772b0 (diff) |
grove: add temperature sensor
Add driver for the Grove Temperature Sensor which measures ambient
temperature.
Sensor reference page:
http://www.seeedstudio.com/wiki/Grove_-_Temperature_Sensor
Change-Id: I4f56224be5fa7a968749d5d4df8cb99a462c3c21
Origin: original
Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
Diffstat (limited to 'drivers/grove/Kconfig')
-rw-r--r-- | drivers/grove/Kconfig | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/drivers/grove/Kconfig b/drivers/grove/Kconfig index 3a99865c1..ef76c4e79 100644 --- a/drivers/grove/Kconfig +++ b/drivers/grove/Kconfig @@ -111,3 +111,70 @@ config GROVE_LIGHT_SENSOR_INIT_PRIORITY Device driver initialization priority. As the device is connected to an ADC device, its driver has to be initialized after the ADC device. + +config GROVE_TEMPERATURE_SENSOR + bool + prompt "Enable the Seeed Grove Temperature Sensor" + depends on GROVE && ADC && NEWLIB_LIBC + default n + help + Setting this value will enable dirver support for the Grove + Temperature Sensor. + +config GROVE_TEMPERATURE_SENSOR_NAME + string + prompt "Driver name" + depends on GROVE_TEMPERATURE_SENSOR + default "GROVE_TEMPERATURE_SENSOR" + help + Specify the device name with which the Grove Temperature Sensor + is identified. + +choice + prompt "Sensor version" + depends on GROVE_TEMPERATURE_SENSOR + default GROVE_TEMPERATURE_SENSOR_V1_0 + help + Choose the version of the Grove Temperature Sensor. + +config GROVE_TEMPERATURE_SENSOR_V1_0 + bool + prompt "v1.0" + help + Version 1.0 + +config GROVE_TEMPERATURE_SENSOR_V1_X + bool + prompt "v1.1/v1.2" + help + Version 1.1 or 1.2 + +endchoice + +config GROVE_TEMPERATURE_SENSOR_ADC_DEV_NAME + string + prompt "ADC where Grove Temperature Sensor is connected" + depends on GROVE_TEMPERATURE_SENSOR + 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 + prompt "ADC channel used by Grove Temperature Sensor" + depends on GROVE_TEMPERATURE_SENSOR + default 10 + help + Specify the channel of the ADC to which the Grove Temperature Sensor + is connected. + +config GROVE_TEMPERATURE_SENSOR_INIT_PRIORITY + int + prompt "Init priority" + default 70 + depends on GROVE_TEMPERATURE_SENSOR + help + Device driver initialization priority. + As the device is connected to an ADC device, its driver has to be + initialized after the ADC device. |