diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-21 14:38:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 14:38:32 -0400 |
commit | 54f1ddc1f5bbe19c0a669937d85c71153a859116 (patch) | |
tree | 20eeb2aacdebb7180d28ffb2c2da02191d7da1ed /app/drivers/zephyr/Kconfig | |
parent | 22c0558b2f9561f2bebae4646eb41800c3fe0cc8 (diff) | |
parent | 3a508c42d0f408b42e58f119f4f0132a87203ad1 (diff) |
Merge pull request #59 from petejohanson/sensors/en11-encoder-sensor
Initial low level EC11 sensor driver
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..0237846 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 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 |