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
16config R502A_DATA_PKT_SIZE
17	int "Template data packet size"
18	default 128
19	help
20	  Template data packet size for upload and download
21	  to the sensor device.
22	  valid values are:
23	  32, 64, 128, 256.
24
25choice
26	prompt "Trigger mode"
27	default GROW_R502A_TRIGGER_NONE
28	help
29	  Specify the type of triggering used by the driver.
30
31config GROW_R502A_TRIGGER_NONE
32	bool "No trigger"
33
34config GROW_R502A_TRIGGER_GLOBAL_THREAD
35	bool "Use global thread"
36	depends on GPIO
37	select GROW_R502A_TRIGGER
38
39config GROW_R502A_TRIGGER_OWN_THREAD
40	bool "Use own thread"
41	depends on GPIO
42	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_HZGROW_R502A),int-gpios)
43	select GROW_R502A_TRIGGER
44
45endchoice
46
47
48config GROW_R502A_TRIGGER
49	bool
50
51config GROW_R502A_THREAD_PRIORITY
52	int "Thread priority"
53	depends on GROW_R502A_TRIGGER_OWN_THREAD && GROW_R502A_TRIGGER
54	default 10
55	help
56	  Priority of thread used by the driver to handle interrupts.
57
58config GROW_R502A_THREAD_STACK_SIZE
59	int "Thread stack size"
60	depends on GROW_R502A_TRIGGER_OWN_THREAD && GROW_R502A_TRIGGER
61	default 1024
62	help
63	  Stack size of thread used by the driver to handle interrupts.
64
65config GROW_R502A_GPIO_POWER
66	bool "GROW_R502A sensor VCC and VT GPIO"
67	help
68	  Enable control of vin-gpios and act-gpios.
69
70endif # GROW_R502A
71