1# Copyright (c) 2020 Facebook, Inc. and its affiliates 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig BMP388 5 bool "Bosch BMP388 pressure sensor" 6 default y 7 depends on DT_HAS_BOSCH_BMP388_ENABLED || DT_HAS_BOSCH_BMP390_ENABLED 8 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP388),i2c) || \ 9 $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP390),i2c) 10 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP388),spi) || \ 11 $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP390),spi) 12 help 13 Enable driver for the Bosch BMP388 pressure sensor 14 15if BMP388 16 17choice BMP388_TRIGGER_MODE 18 prompt "Trigger mode" 19 default BMP388_TRIGGER_GLOBAL_THREAD 20 help 21 Specify the type of triggering to be used by the driver. 22 23config BMP388_TRIGGER_NONE 24 bool "No trigger" 25 26config BMP388_TRIGGER_GLOBAL_THREAD 27 bool "Use global thread" 28 depends on GPIO 29 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMP388),int-gpios) 30 select BMP388_TRIGGER 31 32config BMP388_TRIGGER_OWN_THREAD 33 bool "Use own thread" 34 depends on GPIO 35 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMP388),int-gpios) 36 select BMP388_TRIGGER 37 38config BMP388_TRIGGER_DIRECT 39 bool "Use IRQ handler" 40 depends on GPIO 41 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMP388),int-gpios) 42 select BMP388_TRIGGER 43endchoice 44 45config BMP388_TRIGGER 46 bool 47 48config BMP388_THREAD_PRIORITY 49 int "Own thread priority" 50 depends on BMP388_TRIGGER_OWN_THREAD 51 default 10 52 help 53 Priority of the thread used by the driver to handle interrupts. 54 55config BMP388_THREAD_STACK_SIZE 56 int "Own thread stack size" 57 depends on BMP388_TRIGGER_OWN_THREAD 58 default 1024 59 help 60 Stack size of thread used by the driver to handle interrupts. 61 62config BMP388_ODR_RUNTIME 63 bool "Change ODR at runtime." 64 default y 65 66config BMP388_OSR_RUNTIME 67 bool "Change OSR at runtime." 68 default y 69 70endif # BMP388 71