Kconfig 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Kconfig file for package button
  2. menuconfig HUALI_PKG_USING_BUTTON
  3. bool "button drive by C, support single and double click, long press, long press release"
  4. default n
  5. if HUALI_PKG_USING_BUTTON
  6. config HUALI_PKG_BUTTON_PATH
  7. string
  8. default "/huali_pkgs/peripherals/button"
  9. config SINGLE_AND_DOUBLE_TRIGGER
  10. bool "support single and double click"
  11. default y
  12. config CONTINUOS_TRIGGER
  13. bool "support continuos trigger"
  14. default n
  15. config LONG_FREE_TRIGGER
  16. bool "support long press release"
  17. default n
  18. config BUTTON_DEBOUNCE_TIME
  19. int "This value is the button debounce time"
  20. default 2
  21. help
  22. "This value = (n-1)*(button processing callback cycle)"
  23. config BUTTON_CONTINUOS_CYCLE
  24. int "This value is the button press the trigger cycle continuously"
  25. default 1
  26. help
  27. "This value = (n-1)*(button processing callback cycle)"
  28. config BUTTON_LONG_CYCLE
  29. int "This value is the button long press cycle time"
  30. default 1
  31. help
  32. "This value = (n-1)*(button processing callback cycle)"
  33. config BUTTON_DOUBLE_TIME
  34. int "This value is the button double click time"
  35. default 15
  36. help
  37. "This value = (n-1)*(button processing callback cycle)"
  38. config BUTTON_LONG_TIME
  39. int "This value is the button long press time"
  40. default 50
  41. help
  42. "This value = (n-1)*(button processing callback cycle)"
  43. endif