1# Common Kconfig template for all sensors 2# Copyright (c) 2023 STMicroelectronics 3# SPDX-License-Identifier: Apache-2.0 4 5choice "$(module)_TRIGGER_MODE" 6 prompt "Trigger mode" 7 default $(module)_TRIGGER_NONE 8 help 9 Specify the type of triggering to be used by the sensor module. 10 11config $(module)_TRIGGER_NONE 12 bool "No trigger" 13 14config $(module)_TRIGGER_GLOBAL_THREAD 15 bool "Use global thread" 16 depends on GPIO 17 select $(module)_TRIGGER 18 19config $(module)_TRIGGER_OWN_THREAD 20 bool "Use own thread" 21 depends on GPIO 22 select $(module)_TRIGGER 23 24endchoice 25 26config $(module)_TRIGGER 27 bool 28 29if $(module)_TRIGGER 30 31config $(module)_THREAD_PRIORITY 32 int "Thread priority" 33 depends on $(module)_TRIGGER_OWN_THREAD 34 default $(thread_priority) 35 help 36 Priority of thread used by the driver to handle interrupts. 37 38config $(module)_THREAD_STACK_SIZE 39 int "Thread stack size" 40 depends on $(module)_TRIGGER_OWN_THREAD 41 default $(thread_stack_size) 42 help 43 Stack size of thread used by the driver to handle interrupts. 44 45endif # $(module)_TRIGGER 46