blob: 6854e530eb257c92cf59d89305184b43ebb8cd56 (
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
 | # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
menuconfig EC11
	bool "EC11 Incremental Encoder Sensor"
	depends on GPIO
	help
	  Enable driver for EC11 incremental encoder sensors.
if EC11
choice
	prompt "Trigger mode"
	default EC11_TRIGGER_NONE
	help
	  Specify the type of triggering to be used by the driver.
config EC11_TRIGGER_NONE
	bool "No trigger"
config EC11_TRIGGER_GLOBAL_THREAD
	bool "Use global thread"
	depends on GPIO
	select EC11_TRIGGER
config EC11_TRIGGER_OWN_THREAD
	bool "Use own thread"
	depends on GPIO
	select EC11_TRIGGER
endchoice
config EC11_TRIGGER
	bool
config EC11_THREAD_PRIORITY
	int "Thread priority"
	depends on EC11_TRIGGER_OWN_THREAD
	default 10
	help
	  Priority of thread used by the driver to handle interrupts.
config EC11_THREAD_STACK_SIZE
	int "Thread stack size"
	depends on EC11_TRIGGER_OWN_THREAD
	default 1024
	help
	  Stack size of thread used by the driver to handle interrupts.
endif # EC11
 |