summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr/Kconfig
blob: 00a43d27f24b9962ee81e0732006376e4d1d60e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
config ZMK_KSCAN_GPIO_DRIVER
	bool "Enable GPIO kscan driver to simulate key presses"
	default y
	select GPIO

if ZMK_KSCAN_GPIO_DRIVER

config ZMK_KSCAN_GPIO_POLLING
	bool "Poll for key event triggers instead of using interrupts"
	default n

endif

config ZMK_KSCAN_INIT_PRIORITY
	int "Keyboard scan driver init priority"
	default 40
	help
	  Keyboard scan device driver initialization priority.

menuconfig EN11
	bool "EN11 Incremental Encoder Sensor"
	depends on GPIO
	help
	  Enable driver for EN11 incremental encoder sensors.

if EN11

choice
	prompt "Trigger mode"
	default EN11_TRIGGER_NONE
	help
	  Specify the type of triggering to be used by the driver.

config EN11_TRIGGER_NONE
	bool "No trigger"

config EN11_TRIGGER_GLOBAL_THREAD
	bool "Use global thread"
	depends on GPIO
	select EN11_TRIGGER

config EN11_TRIGGER_OWN_THREAD
	bool "Use own thread"
	depends on GPIO
	select EN11_TRIGGER

endchoice

config EN11_TRIGGER
	bool

config EN11_THREAD_PRIORITY
	int "Thread priority"
	depends on EN11_TRIGGER_OWN_THREAD
	default 10
	help
	  Priority of thread used by the driver to handle interrupts.

config EN11_THREAD_STACK_SIZE
	int "Thread stack size"
	depends on EN11_TRIGGER_OWN_THREAD
	default 1024
	help
	  Stack size of thread used by the driver to handle interrupts.

endif # EN11