1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/lpsxxx/Kconfig
2021-12-08 13:25:26 +01:00

93 lines
2.2 KiB
Plaintext

# 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.
#
menuconfig MODULE_LPSXXX
bool
prompt "LPSXXX Pressure Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_LPSXXX)
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
help
Device driver for the LPSXXX pressure sensor family
(LPS331AP/LPS25HB/LPS22HB/LPS22HH). Select a model.
if MODULE_LPSXXX
choice LPSXXX_VARIANT
bool "Model"
default MODULE_LPS331AP if HAVE_LPS331AP
default MODULE_LPS22HB if HAVE_LPS22HB
default MODULE_LPS22HH if HAVE_LPS22HH
default MODULE_LPS25HB if HAVE_LPS25HB
help
Device driver for the LPSXXX pressure sensor family
(LPS331AP/LPS25HB/LPS22HB/LPS22HH). Select a model.
config MODULE_LPS331AP
bool "LPS331AP"
config MODULE_LPS22HB
bool "LPS22HB"
config MODULE_LPS22HH
bool "LPS22HH"
config MODULE_LPS25HB
bool "LPS25HB"
endchoice
endif # MODULE_LPSXXX
menuconfig KCONFIG_USEMODULE_LPSXXX
bool "Configure LPSXXX driver"
depends on USEMODULE_LPSXXX
help
Configure the LPSXXX driver using Kconfig.
if KCONFIG_USEMODULE_LPSXXX
config LPSXXX_DEFAULT_ADDRESS
hex "Default I2C address"
range 0x5c 0x5d
default 0x5d
help
The address depends on the status of SDO/SA0 Pin. Default
address corresponds to SDO/SA0 connected to VDD. For more
information refer to the section 'I2C operation' in the
datasheet.
endif # KCONFIG_USEMODULE_LPSXXX
config HAVE_LPSXXX
bool
select MODULE_LPSXXX if MODULE_SAUL_DEFAULT
config HAVE_LPS331AP
bool
select HAVE_LPSXXX
help
Indicates that a LPS331AP sensor is present.
config HAVE_LPS22HB
bool
select HAVE_LPSXXX
help
Indicates that a LPS22HB sensor is present.
config HAVE_LPS22HH
bool
select HAVE_LPSXXX
help
Indicates that a LPS22HH sensor is present.
config HAVE_LPS25HB
bool
select HAVE_LPSXXX
help
Indicates that a LPS25HB sensor is present.