mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
61 lines
1.4 KiB
Plaintext
61 lines
1.4 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.
|
|
#
|
|
|
|
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/LPS22HH). Select a model.
|
|
|
|
config MODULE_LPS331AP
|
|
bool "LPS331AP"
|
|
select MODULE_LPSXXX
|
|
|
|
config MODULE_LPS22HB
|
|
bool "LPS22HB"
|
|
select MODULE_LPSXXX
|
|
|
|
config MODULE_LPS22HH
|
|
bool "LPS22HH"
|
|
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
|
|
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
|