zmk_mf68/app/drivers/sensor/ec11/Kconfig

50 lines
975 B
Text
Raw Normal View History

2020-11-19 09:15:00 +11:00
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
menuconfig EC11
bool "EC11 Incremental Encoder Sensor"
2020-07-18 12:43:19 +10:00
depends on GPIO
help
Enable driver for EC11 incremental encoder sensors.
2020-07-18 12:43:19 +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"
default EC11_TRIGGER_NONE
2020-07-18 12:43:19 +10:00
help
Specify the type of triggering to be used by the driver.
config EC11_TRIGGER_NONE
2020-07-18 12:43:19 +10:00
bool "No trigger"
config EC11_TRIGGER_GLOBAL_THREAD
2020-07-18 12:43:19 +10:00
bool "Use global thread"
depends on GPIO
select EC11_TRIGGER
2020-07-18 12:43:19 +10:00
config EC11_TRIGGER_OWN_THREAD
2020-07-18 12:43:19 +10:00
bool "Use own thread"
depends on GPIO
select EC11_TRIGGER
2020-07-18 12:43:19 +10:00
endchoice
2020-08-07 13:22:02 +10:00
config EC11_TRIGGER
bool
config EC11_THREAD_PRIORITY
2020-07-18 12:43:19 +10:00
int "Thread priority"
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.
config EC11_THREAD_STACK_SIZE
2020-07-18 12:43:19 +10:00
int "Thread stack size"
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.
endif # EC11