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 8 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP388),i2c) 9 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP388),spi) 10 help 11 Enable driver for the Bosch BMP388 pressure sensor 12 13if BMP388 14 15choice BMP388_TRIGGER_MODE 16 prompt "Trigger mode" 17 default BMP388_TRIGGER_GLOBAL_THREAD 18 help 19 Specify the type of triggering to be used by the driver. 20 21config BMP388_TRIGGER_NONE 22 bool "No trigger" 23 24config BMP388_TRIGGER_GLOBAL_THREAD 25 bool "Use global thread" 26 select BMP388_TRIGGER 27 28config BMP388_TRIGGER_OWN_THREAD 29 bool "Use own thread" 30 select BMP388_TRIGGER 31 32config BMP388_TRIGGER_DIRECT 33 bool "Use IRQ handler" 34 select BMP388_TRIGGER 35endchoice 36 37config BMP388_TRIGGER 38 bool 39 40config BMP388_THREAD_PRIORITY 41 int "Own thread priority" 42 depends on BMP388_TRIGGER_OWN_THREAD 43 default 10 44 help 45 Priority of the thread used by the driver to handle interrupts. 46 47config BMP388_THREAD_STACK_SIZE 48 int "Own thread stack size" 49 depends on BMP388_TRIGGER_OWN_THREAD 50 default 1024 51 help 52 Stack size of thread used by the driver to handle interrupts. 53 54config BMP388_ODR_RUNTIME 55 bool "Change ODR at runtime." 56 default y 57 58config BMP388_OSR_RUNTIME 59 bool "Change OSR at runtime." 60 default y 61 62endif # BMP388 63