2020-11-19 09:15:00 +11:00
|
|
|
# Copyright (c) 2020 The ZMK Contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
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-11-20 04:20:43 +11:00
|
|
|
endif # EC11
|