diff --git a/drivers/Kconfig b/drivers/Kconfig index 5e0ad14452..0ecf637248 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -50,6 +50,7 @@ rsource "hdc1000/Kconfig" rsource "hih6130/Kconfig" rsource "hmc5883l/Kconfig" rsource "hts221/Kconfig" +rsource "ina2xx/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/ina2xx/Kconfig b/drivers/ina2xx/Kconfig new file mode 100644 index 0000000000..1b57d81ee2 --- /dev/null +++ b/drivers/ina2xx/Kconfig @@ -0,0 +1,29 @@ +# Copyright (c) 2020 HAW Hamburg +# +# 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. +# + +choice + bool "INA2XX current/power monitor" + optional + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + help + Select one of the supported models. + +config MODULE_INA219 + bool "INA219" + select MODULE_INA2XX + +config MODULE_INA220 + bool "INA220" + select MODULE_INA2XX + +endchoice + +config MODULE_INA2XX + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C