summaryrefslogtreecommitdiff
path: root/app/drivers/sensor/ec11/Kconfig
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-11-19 17:20:43 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-03 21:06:01 -0500
commit8d9ae1fdf379020d4743b4f85f465e88b148ac29 (patch)
tree07cb741277cc5a85a66c280f258d551690c120e7 /app/drivers/sensor/ec11/Kconfig
parent177b28f01de88ece582604c0ef0abaaaefe2f624 (diff)
refactor: Align drivers with Zephyr file system conventions
PR: #400
Diffstat (limited to 'app/drivers/sensor/ec11/Kconfig')
-rw-r--r--app/drivers/sensor/ec11/Kconfig50
1 files changed, 50 insertions, 0 deletions
diff --git a/app/drivers/sensor/ec11/Kconfig b/app/drivers/sensor/ec11/Kconfig
new file mode 100644
index 0000000..6854e53
--- /dev/null
+++ b/app/drivers/sensor/ec11/Kconfig
@@ -0,0 +1,50 @@
+# Copyright (c) 2020 The ZMK Contributors
+# SPDX-License-Identifier: MIT
+
+menuconfig EC11
+ bool "EC11 Incremental Encoder Sensor"
+ depends on GPIO
+ help
+ Enable driver for EC11 incremental encoder sensors.
+
+if EC11
+
+choice
+ prompt "Trigger mode"
+ default EC11_TRIGGER_NONE
+ help
+ Specify the type of triggering to be used by the driver.
+
+config EC11_TRIGGER_NONE
+ bool "No trigger"
+
+config EC11_TRIGGER_GLOBAL_THREAD
+ bool "Use global thread"
+ depends on GPIO
+ select EC11_TRIGGER
+
+config EC11_TRIGGER_OWN_THREAD
+ bool "Use own thread"
+ depends on GPIO
+ select EC11_TRIGGER
+
+endchoice
+
+config EC11_TRIGGER
+ bool
+
+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.
+
+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.
+
+endif # EC11 \ No newline at end of file