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

drivers/lpsxxx: add modules to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-12-07 17:18:57 +01:00
parent 51cf04da09
commit d037a5a949
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -1,9 +1,40 @@
# Copyright (c) 2020 Freie Universitaet Berlin
# 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 "LPSXXX Pressure Sensors"
optional
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
help
Device driver for the LPSXXX pressure sensor family
(LPS331AP/LPS25HB/LPS22HB). Select a model.
config MODULE_LPS331AP
bool "LPS331AP"
select MODULE_LPSXXX
config MODULE_LPS22HB
bool "LPS22HB"
select MODULE_LPSXXX
config MODULE_LPS25HB
bool "LPS25HB"
select MODULE_LPSXXX
endchoice
config MODULE_LPSXXX
bool
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
menuconfig KCONFIG_USEMODULE_LPSXXX
bool "Configure LPSXXX driver"
depends on USEMODULE_LPSXXX