From 18c21fb22d5351a3d22bea60bf0932f6352126ac Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:55:05 +0100 Subject: [PATCH] drivers/ina3221: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/ina3221/Kconfig | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 drivers/ina3221/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 0ecf637248..47eab6c3ee 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -51,6 +51,7 @@ rsource "hih6130/Kconfig" rsource "hmc5883l/Kconfig" rsource "hts221/Kconfig" rsource "ina2xx/Kconfig" +rsource "ina3221/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/ina3221/Kconfig b/drivers/ina3221/Kconfig new file mode 100644 index 0000000000..273da6170a --- /dev/null +++ b/drivers/ina3221/Kconfig @@ -0,0 +1,22 @@ +# 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. +# + +menuconfig MODULE_INA3221 + bool "INA3221 current/power monitor" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_I2C + +config MODULE_INA3221_ALERTS + bool "Altert pins" + depends on HAS_PERIPH_GPIO_IRQ + depends on MODULE_INA3221 + select MODULE_PERIPH_GPIO_IRQ + help + Say y to enable the usage of alert pins.