| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # Kconfig file for package button
- menuconfig HUALI_PKG_USING_BUTTON
- bool "button drive by C, support single and double click, long press, long press release"
- default n
- if HUALI_PKG_USING_BUTTON
- config HUALI_PKG_BUTTON_PATH
- string
- default "/huali_pkgs/peripherals/button"
-
- config SINGLE_AND_DOUBLE_TRIGGER
- bool "support single and double click"
- default y
-
- config CONTINUOS_TRIGGER
- bool "support continuos trigger"
- default n
-
- config LONG_FREE_TRIGGER
- bool "support long press release"
- default n
-
- config BUTTON_DEBOUNCE_TIME
- int "This value is the button debounce time"
- default 2
- help
- "This value = (n-1)*(button processing callback cycle)"
-
- config BUTTON_CONTINUOS_CYCLE
- int "This value is the button press the trigger cycle continuously"
- default 1
- help
- "This value = (n-1)*(button processing callback cycle)"
-
- config BUTTON_LONG_CYCLE
- int "This value is the button long press cycle time"
- default 1
- help
- "This value = (n-1)*(button processing callback cycle)"
-
- config BUTTON_DOUBLE_TIME
- int "This value is the button double click time"
- default 15
- help
- "This value = (n-1)*(button processing callback cycle)"
-
- config BUTTON_LONG_TIME
- int "This value is the button long press time"
- default 50
- help
- "This value = (n-1)*(button processing callback cycle)"
- endif
|