mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# 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_INA2XX
|
|
bool
|
|
prompt "INA2XX current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA2XX)
|
|
default (MODULE_SAUL_DEFAULT && HAVE_INA2XX)
|
|
depends on HAS_PERIPH_I2C
|
|
depends on TEST_KCONFIG
|
|
select MODULE_PERIPH_I2C
|
|
|
|
choice INA2XX_VARIANT
|
|
bool "Variant"
|
|
depends on MODULE_INA2XX
|
|
default MODULE_INA219 if HAVE_INA219
|
|
default MODULE_INA220 if HAVE_INA220
|
|
help
|
|
Select one of the supported models.
|
|
|
|
config MODULE_INA219
|
|
bool "INA219"
|
|
|
|
config MODULE_INA220
|
|
bool "INA220"
|
|
|
|
endchoice
|
|
|
|
config HAVE_INA2XX
|
|
bool
|
|
help
|
|
Indicates that a INA2XX current/power monitor is present.
|
|
|
|
config HAVE_INA219
|
|
bool
|
|
select HAVE_INA2XX
|
|
help
|
|
Indicates that a INA219 current/power monitor is present.
|
|
|
|
config HAVE_INA220
|
|
bool
|
|
select HAVE_INA2XX
|
|
help
|
|
Indicates that a INA220 current/power monitor is present.
|