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:
parent
c964891d20
commit
c5ce7e60b5
@ -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
29
drivers/ina2xx/Kconfig
Normal 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
|
Loading…
Reference in New Issue
Block a user