zephyr/drivers/sensor/dht/Kconfig
David B. Kinder ac74d8b652 license: Replace Apache boilerplate with SPDX tag
Replace the existing Apache 2.0 boilerplate header with an SPDX tag
throughout the zephyr code tree. This patch was generated via a
script run over the master branch.

Also updated doc/porting/application.rst that had a dependency on
line numbers in a literal include.

Manually updated subsys/logging/sys_log.c that had a malformed
header in the original file.  Also cleanup several cases that already
had a SPDX tag and we either got a duplicate or missed updating.

Jira: ZEP-1457

Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-01-19 03:50:58 +00:00

63 lines
1.2 KiB
Plaintext

# Kconfig - DHT Temperature and Himidity Sensor configuration options
#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig DHT
bool
prompt "DHT Temperature and Humidity Sensor"
depends on SENSOR && GPIO
default n
help
Enable driver for the DHT temperature and humidity sensor family.
choice
prompt "Chip type"
depends on DHT
default DHT_CHIP_DHT11
help
Choose desired chip type from the DHT family.
config DHT_CHIP_DHT11
bool
prompt "DHT11"
help
Choose this option to enable the DHT11 chip.
config DHT_CHIP_DHT22
bool
prompt "DHT22"
help
Choose this option to enable the DHT22 chip.
endchoice
config DHT_NAME
string
prompt "Driver name"
default "DHT11" if DHT_CHIP_DHT11
default "DHT22" if DHT_CHIP_DHT22
depends on DHT
help
Device name with which the sensor is identified.
config DHT_GPIO_DEV_NAME
string
prompt "GPIO device"
default "GPIO_0"
depends on DHT
help
The device name of the GPIO device to which the chip's data pin
is connected.
config DHT_GPIO_PIN_NUM
int
prompt "Interrupt GPIO pin number"
default 0
depends on DHT
help
The number of the GPIO on which the chip's data pin is connected.