zmk/app/module/drivers/sensor/ec11/Kconfig

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-18 14:15:00 -08:00
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
menuconfig EC11
bool "EC11 Incremental Encoder Sensor"
default y
depends on DT_HAS_ALPS_EC11_ENABLED
depends on GPIO
help
Enable driver for EC11 incremental encoder sensors.
2020-07-17 19:43:19 -07:00
if EC11
2020-07-17 19:43:19 -07:00
2020-08-06 20:22:02 -07:00
choice
prompt "Trigger mode"
default EC11_TRIGGER_NONE
help
Specify the type of triggering to be used by the driver.
2020-07-17 19:43:19 -07:00
config EC11_TRIGGER_NONE
bool "No trigger"
2020-07-17 19:43:19 -07:00
config EC11_TRIGGER_GLOBAL_THREAD
bool "Use global thread"
depends on GPIO
select EC11_TRIGGER
2020-07-17 19:43:19 -07:00
config EC11_TRIGGER_OWN_THREAD
bool "Use own thread"
depends on GPIO
select EC11_TRIGGER
2020-07-17 19:43:19 -07:00
endchoice
2020-08-06 20:22:02 -07:00
config EC11_TRIGGER
bool
2020-08-06 20:22:02 -07:00
config EC11_THREAD_PRIORITY
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 19:43:19 -07:00
config EC11_THREAD_STACK_SIZE
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 19:43:19 -07:00
endif # EC11