1# GROW_R502A hzgrow Fingerprint sensor Configuration options 2 3# Copyright (c) 2021 Linumiz 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig GROW_R502A 7 bool "GROW_R502A Fingerprint Sensor" 8 default y 9 depends on DT_HAS_HZGROW_R502A_ENABLED 10 depends on UART_INTERRUPT_DRIVEN && SERIAL 11 help 12 Enable driver for GROW_R502A Fingerprint Sensor. 13 14if GROW_R502A 15 16choice 17 prompt "Trigger mode" 18 default GROW_R502A_TRIGGER_NONE 19 help 20 Specify the type of triggering used by the driver. 21 22config GROW_R502A_TRIGGER_NONE 23 bool "No trigger" 24 25config GROW_R502A_TRIGGER_GLOBAL_THREAD 26 bool "Use global thread" 27 depends on GPIO 28 select GROW_R502A_TRIGGER 29 30config GROW_R502A_TRIGGER_OWN_THREAD 31 bool "Use own thread" 32 depends on GPIO 33 select GROW_R502A_TRIGGER 34 35endchoice 36 37 38config GROW_R502A_TRIGGER 39 bool 40 41config GROW_R502A_THREAD_PRIORITY 42 int "Thread priority" 43 depends on GROW_R502A_TRIGGER_OWN_THREAD && GROW_R502A_TRIGGER 44 default 10 45 help 46 Priority of thread used by the driver to handle interrupts. 47 48config GROW_R502A_THREAD_STACK_SIZE 49 int "Thread stack size" 50 depends on GROW_R502A_TRIGGER_OWN_THREAD && GROW_R502A_TRIGGER 51 default 1024 52 help 53 Stack size of thread used by the driver to handle interrupts. 54 55config GROW_R502A_GPIO_POWER 56 bool "GROW_R502A sensor VCC and VT GPIO" 57 help 58 Enable control of vin-gpios and act-gpios. 59 60endif # GROW_R502A 61