1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/ina2xx/Kconfig

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-26 15:40:41 +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.
#
2022-03-02 14:03:42 +01:00
menuconfig MODULE_INA2XX
bool
prompt "INA2XX current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA2XX)
default (MODULE_SAUL_DEFAULT && HAVE_INA2XX)
2020-11-26 15:40:41 +01:00
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
2022-03-02 14:03:42 +01:00
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
2020-11-26 15:40:41 +01:00
help
Select one of the supported models.
config MODULE_INA219
bool "INA219"
config MODULE_INA220
bool "INA220"
endchoice
2022-03-02 14:03:42 +01:00
config HAVE_INA2XX
2020-11-26 15:40:41 +01:00
bool
2022-03-02 14:03:42 +01:00
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.