2020-05-27 10:48:15 +10:00
|
|
|
config ZMK_KSCAN_GPIO_DRIVER
|
|
|
|
bool "Enable GPIO kscan driver to simulate key presses"
|
|
|
|
default y
|
|
|
|
select GPIO
|
|
|
|
|
2020-06-25 00:06:35 +10:00
|
|
|
if ZMK_KSCAN_GPIO_DRIVER
|
|
|
|
|
2020-09-24 21:55:32 +10:00
|
|
|
config ZMK_KSCAN_MATRIX_POLLING
|
2020-09-25 04:30:47 +10:00
|
|
|
bool "Poll for key event triggers instead of using interrupts on matrix boards."
|
|
|
|
default y
|
2020-06-25 00:06:35 +10:00
|
|
|
|
2020-09-24 21:55:32 +10:00
|
|
|
config ZMK_KSCAN_DIRECT_POLLING
|
2020-09-25 04:30:47 +10:00
|
|
|
bool "Poll for key event triggers instead of using interrupts on direct wired boards."
|
2020-09-24 06:05:29 +10:00
|
|
|
default n
|
|
|
|
|
2020-06-25 00:06:35 +10:00
|
|
|
endif
|
|
|
|
|
2020-05-27 10:48:15 +10:00
|
|
|
config ZMK_KSCAN_INIT_PRIORITY
|
|
|
|
int "Keyboard scan driver init priority"
|
|
|
|
default 40
|
|
|
|
help
|
|
|
|
Keyboard scan device driver initialization priority.
|
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
menuconfig EC11
|
|
|
|
bool "EC11 Incremental Encoder Sensor"
|
2020-07-18 12:43:19 +10:00
|
|
|
depends on GPIO
|
|
|
|
help
|
2020-07-21 10:54:58 +10:00
|
|
|
Enable driver for EC11 incremental encoder sensors.
|
2020-07-18 12:43:19 +10:00
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
if EC11
|
2020-07-18 12:43:19 +10:00
|
|
|
|
2020-08-07 13:22:02 +10:00
|
|
|
choice
|
2020-07-18 12:43:19 +10:00
|
|
|
prompt "Trigger mode"
|
2020-07-21 10:54:58 +10:00
|
|
|
default EC11_TRIGGER_NONE
|
2020-07-18 12:43:19 +10:00
|
|
|
help
|
|
|
|
Specify the type of triggering to be used by the driver.
|
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
config EC11_TRIGGER_NONE
|
2020-07-18 12:43:19 +10:00
|
|
|
bool "No trigger"
|
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
config EC11_TRIGGER_GLOBAL_THREAD
|
2020-07-18 12:43:19 +10:00
|
|
|
bool "Use global thread"
|
|
|
|
depends on GPIO
|
2020-07-21 10:54:58 +10:00
|
|
|
select EC11_TRIGGER
|
2020-07-18 12:43:19 +10:00
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
config EC11_TRIGGER_OWN_THREAD
|
2020-07-18 12:43:19 +10:00
|
|
|
bool "Use own thread"
|
|
|
|
depends on GPIO
|
2020-07-21 10:54:58 +10:00
|
|
|
select EC11_TRIGGER
|
2020-07-18 12:43:19 +10:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2020-08-07 13:22:02 +10:00
|
|
|
config EC11_TRIGGER
|
|
|
|
bool
|
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
config EC11_THREAD_PRIORITY
|
2020-07-18 12:43:19 +10:00
|
|
|
int "Thread priority"
|
2020-07-21 10:54:58 +10:00
|
|
|
depends on EC11_TRIGGER_OWN_THREAD
|
2020-07-18 12:43:19 +10:00
|
|
|
default 10
|
|
|
|
help
|
|
|
|
Priority of thread used by the driver to handle interrupts.
|
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
config EC11_THREAD_STACK_SIZE
|
2020-07-18 12:43:19 +10:00
|
|
|
int "Thread stack size"
|
2020-07-21 10:54:58 +10:00
|
|
|
depends on EC11_TRIGGER_OWN_THREAD
|
2020-07-18 12:43:19 +10:00
|
|
|
default 1024
|
|
|
|
help
|
|
|
|
Stack size of thread used by the driver to handle interrupts.
|
|
|
|
|
2020-07-21 10:54:58 +10:00
|
|
|
endif # EC11
|