2020-11-18 22:15:00 +00:00
|
|
|
# Copyright (c) 2020 The ZMK Contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
menuconfig EC11
|
2023-04-22 23:25:56 -05:00
|
|
|
bool "EC11 Incremental Encoder Sensor"
|
2021-12-02 15:07:29 +00:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ALPS_EC11_ENABLED
|
2023-04-22 23:25:56 -05:00
|
|
|
depends on GPIO
|
|
|
|
help
|
|
|
|
Enable driver for EC11 incremental encoder sensors.
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
if EC11
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-08-06 23:22:02 -04:00
|
|
|
choice
|
2023-04-22 23:25:56 -05:00
|
|
|
prompt "Trigger mode"
|
|
|
|
default EC11_TRIGGER_NONE
|
|
|
|
help
|
|
|
|
Specify the type of triggering to be used by the driver.
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
config EC11_TRIGGER_NONE
|
2023-04-22 23:25:56 -05:00
|
|
|
bool "No trigger"
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
config EC11_TRIGGER_GLOBAL_THREAD
|
2023-04-22 23:25:56 -05:00
|
|
|
bool "Use global thread"
|
|
|
|
depends on GPIO
|
|
|
|
select EC11_TRIGGER
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
config EC11_TRIGGER_OWN_THREAD
|
2023-04-22 23:25:56 -05:00
|
|
|
bool "Use own thread"
|
|
|
|
depends on GPIO
|
|
|
|
select EC11_TRIGGER
|
2020-07-17 22:43:19 -04:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2020-08-06 23:22:02 -04:00
|
|
|
config EC11_TRIGGER
|
2023-04-22 23:25:56 -05:00
|
|
|
bool
|
2020-08-06 23:22:02 -04:00
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
config EC11_THREAD_PRIORITY
|
2023-04-22 23:25:56 -05:00
|
|
|
int "Thread priority"
|
|
|
|
depends on EC11_TRIGGER_OWN_THREAD
|
|
|
|
default 10
|
|
|
|
help
|
|
|
|
Priority of thread used by the driver to handle interrupts.
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-07-20 20:54:58 -04:00
|
|
|
config EC11_THREAD_STACK_SIZE
|
2023-04-22 23:25:56 -05:00
|
|
|
int "Thread stack size"
|
|
|
|
depends on EC11_TRIGGER_OWN_THREAD
|
|
|
|
default 1024
|
|
|
|
help
|
|
|
|
Stack size of thread used by the driver to handle interrupts.
|
2020-07-17 22:43:19 -04:00
|
|
|
|
2020-11-19 17:20:43 +00:00
|
|
|
endif # EC11
|