diff --git a/drivers/lpsxxx/Kconfig b/drivers/lpsxxx/Kconfig index e5e0157bb0..f00a54b213 100644 --- a/drivers/lpsxxx/Kconfig +++ b/drivers/lpsxxx/Kconfig @@ -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