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

drivers/ina2xx: add modules to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-11-26 15:40:41 +01:00
parent c964891d20
commit c5ce7e60b5
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 30 additions and 0 deletions

View File

@ -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"

29
drivers/ina2xx/Kconfig Normal file
View File

@ -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