2020-11-26 15:55:05 +01:00
|
|
|
# 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
|
2022-03-02 14:03:43 +01:00
|
|
|
bool
|
|
|
|
prompt "INA3221 current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA3221)
|
|
|
|
default (MODULE_SAUL_DEFAULT && HAVE_INA3221)
|
2020-11-26 15:55:05 +01:00
|
|
|
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
|
2022-03-02 14:03:43 +01:00
|
|
|
bool "Alert pins"
|
2020-11-26 15:55:05 +01:00
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
|
|
|
depends on MODULE_INA3221
|
|
|
|
select MODULE_PERIPH_GPIO_IRQ
|
2022-03-02 14:03:43 +01:00
|
|
|
default HAVE_INA3221_ALERTS
|
2020-11-26 15:55:05 +01:00
|
|
|
help
|
|
|
|
Say y to enable the usage of alert pins.
|
2022-03-02 14:03:43 +01:00
|
|
|
|
|
|
|
config HAVE_INA3221
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a INA3221 current/power monitor is present.
|
|
|
|
|
|
|
|
config HAVE_INA3221_ALERTS
|
|
|
|
bool
|
|
|
|
select HAVE_INA3221
|
|
|
|
help
|
|
|
|
Indicates that a INA3221 current/power monitor is present with alert pins wired.
|