diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 775d3e532d..9d43acd141 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -8,3 +8,7 @@ menu "Network Device Drivers" rsource "mrf24j40/Kconfig" source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" endmenu # Network Device Drivers + +menu "Sensor Device Drivers" +rsource "hdc1000/Kconfig" +endmenu # Sensor Device Drivers diff --git a/drivers/hdc1000/Kconfig b/drivers/hdc1000/Kconfig new file mode 100644 index 0000000000..ebf42728b7 --- /dev/null +++ b/drivers/hdc1000/Kconfig @@ -0,0 +1,32 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# +menuconfig KCONFIG_MODULE_HDC1000 + bool "Configure HDC1000 driver" + depends on MODULE_HDC1000 + help + Configure the HDC1000 driver using Kconfig. + +if KCONFIG_MODULE_HDC1000 + +config HDC1000_I2C_ADDRESS + hex "I2C default address" + range 0x40 0x43 + default 0x43 + help + HDC1000 allows for up to 4 devices on single bus. The value depends on + the state of ADR1 and ADR0 pins. + For more information refer to the section 8.5.1 in the Datasheet (SNAS643C). + +config HDC1000_CONVERSION_TIME + int "Conversion time in microseconds [us]" + default 26000 + help + This time value is chosen twice as large as needed for two 14-bit + conversions (worst case) to allow for timer imprecision: + (convert temp + convert hum) * 2 -> (6.5ms + 6.5ms) * 2 := 26ms. + +endif # KCONFIG_MODULE_HDC1000