1# ST Microelectronics STTS751 temperature sensor 2 3# Copyright (c) 2019 STMicroelectronics 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig STTS751 7 bool "STTS751 temperature sensor" 8 default y 9 depends on DT_HAS_ST_STTS751_ENABLED 10 depends on ZEPHYR_HAL_ST_MODULE 11 select I2C 12 select HAS_STMEMSC 13 select USE_STDC_STTS751 14 help 15 Enable driver for STTS751 I2C-based temperature sensor. 16 17if STTS751 18 19choice STTS751_TRIGGER_MODE 20 prompt "Trigger mode" 21 default STTS751_TRIGGER_GLOBAL_THREAD 22 help 23 Specify the type of triggering to be used by the driver. 24 25config STTS751_TRIGGER_NONE 26 bool "No trigger" 27 28config STTS751_TRIGGER_GLOBAL_THREAD 29 bool "Use global thread" 30 depends on GPIO 31 select STTS751_TRIGGER 32 33config STTS751_TRIGGER_OWN_THREAD 34 bool "Use own thread" 35 depends on GPIO 36 select STTS751_TRIGGER 37 38endchoice # STTS751_TRIGGER_MODE 39 40config STTS751_TRIGGER 41 bool 42 43config STTS751_THREAD_PRIORITY 44 int "Thread priority" 45 depends on STTS751_TRIGGER_OWN_THREAD 46 default 10 47 help 48 Priority of thread used by the driver to handle interrupts. 49 50config STTS751_THREAD_STACK_SIZE 51 int "Thread stack size" 52 depends on STTS751_TRIGGER_OWN_THREAD 53 default 1024 54 help 55 Stack size of thread used by the driver to handle interrupts. 56 57menu "Attributes" 58 59config STTS751_TEMP_HI_THRESHOLD 60 depends on STTS751_TRIGGER 61 int "High temperature threshold alarm" 62 default 50 63 help 64 HIGH temperature threshold to trigger an alarm 65 66config STTS751_TEMP_LO_THRESHOLD 67 depends on STTS751_TRIGGER 68 int "Low temperature threshold alarm" 69 default 10 70 help 71 LOW temperature threshold to trigger an alarm 72 73config STTS751_SAMPLING_RATE 74 int "Output data rate" 75 range 0 9 76 default 4 77 help 78 Sensor output data rate expressed in conversions per second. 79 Data rates supported by the chip are: 80 0: 1 conv every 16 sec 81 1: 1 conv every 8 sec 82 2: 1 conv every 4 sec 83 3: 1 conv every 2 sec 84 4: 1 conv every sec 85 5: 2 convs every sec 86 6: 4 convs every sec 87 7: 8 convs every sec 88 8: 16 convs every sec 89 9: 32 convs every sec 90 91endmenu 92 93endif # STTS751 94