You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
975 B
50 lines
975 B
4 years ago
|
# Copyright (c) 2020 The ZMK Contributors
|
||
|
# SPDX-License-Identifier: MIT
|
||
|
|
||
4 years ago
|
menuconfig EC11
|
||
|
bool "EC11 Incremental Encoder Sensor"
|
||
4 years ago
|
depends on GPIO
|
||
|
help
|
||
4 years ago
|
Enable driver for EC11 incremental encoder sensors.
|
||
4 years ago
|
|
||
4 years ago
|
if EC11
|
||
4 years ago
|
|
||
4 years ago
|
choice
|
||
4 years ago
|
prompt "Trigger mode"
|
||
4 years ago
|
default EC11_TRIGGER_NONE
|
||
4 years ago
|
help
|
||
|
Specify the type of triggering to be used by the driver.
|
||
|
|
||
4 years ago
|
config EC11_TRIGGER_NONE
|
||
4 years ago
|
bool "No trigger"
|
||
|
|
||
4 years ago
|
config EC11_TRIGGER_GLOBAL_THREAD
|
||
4 years ago
|
bool "Use global thread"
|
||
|
depends on GPIO
|
||
4 years ago
|
select EC11_TRIGGER
|
||
4 years ago
|
|
||
4 years ago
|
config EC11_TRIGGER_OWN_THREAD
|
||
4 years ago
|
bool "Use own thread"
|
||
|
depends on GPIO
|
||
4 years ago
|
select EC11_TRIGGER
|
||
4 years ago
|
|
||
|
endchoice
|
||
|
|
||
4 years ago
|
config EC11_TRIGGER
|
||
|
bool
|
||
|
|
||
4 years ago
|
config EC11_THREAD_PRIORITY
|
||
4 years ago
|
int "Thread priority"
|
||
4 years ago
|
depends on EC11_TRIGGER_OWN_THREAD
|
||
4 years ago
|
default 10
|
||
|
help
|
||
|
Priority of thread used by the driver to handle interrupts.
|
||
|
|
||
4 years ago
|
config EC11_THREAD_STACK_SIZE
|
||
4 years ago
|
int "Thread stack size"
|
||
4 years ago
|
depends on EC11_TRIGGER_OWN_THREAD
|
||
4 years ago
|
default 1024
|
||
|
help
|
||
|
Stack size of thread used by the driver to handle interrupts.
|
||
|
|
||
4 years ago
|
endif # EC11
|