diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-17 22:43:19 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-07-19 22:11:17 -0400 |
commit | 893b99d907b85109c8cf8b00f381f36939f5ae3c (patch) | |
tree | 0c2997894375eeddc4c6409ffa43587a736acf45 /app/drivers/zephyr/Kconfig | |
parent | f6110a632d0ddbc0a9ebd7bfd4997366f95facfd (diff) |
Initial en11 exploration.
Diffstat (limited to 'app/drivers/zephyr/Kconfig')
-rw-r--r-- | app/drivers/zephyr/Kconfig | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app/drivers/zephyr/Kconfig b/app/drivers/zephyr/Kconfig index cd526e8..00a43d2 100644 --- a/app/drivers/zephyr/Kconfig +++ b/app/drivers/zephyr/Kconfig @@ -17,3 +17,50 @@ config ZMK_KSCAN_INIT_PRIORITY help Keyboard scan device driver initialization priority. +menuconfig EN11 + bool "EN11 Incremental Encoder Sensor" + depends on GPIO + help + Enable driver for EN11 incremental encoder sensors. + +if EN11 + +choice + prompt "Trigger mode" + default EN11_TRIGGER_NONE + help + Specify the type of triggering to be used by the driver. + +config EN11_TRIGGER_NONE + bool "No trigger" + +config EN11_TRIGGER_GLOBAL_THREAD + bool "Use global thread" + depends on GPIO + select EN11_TRIGGER + +config EN11_TRIGGER_OWN_THREAD + bool "Use own thread" + depends on GPIO + select EN11_TRIGGER + +endchoice + +config EN11_TRIGGER + bool + +config EN11_THREAD_PRIORITY + int "Thread priority" + depends on EN11_TRIGGER_OWN_THREAD + default 10 + help + Priority of thread used by the driver to handle interrupts. + +config EN11_THREAD_STACK_SIZE + int "Thread stack size" + depends on EN11_TRIGGER_OWN_THREAD + default 1024 + help + Stack size of thread used by the driver to handle interrupts. + +endif # EN11 |