summaryrefslogtreecommitdiff
path: root/app/button/button_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/button/button_handler.h')
-rw-r--r--app/button/button_handler.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/button/button_handler.h b/app/button/button_handler.h
new file mode 100644
index 0000000..86118fa
--- /dev/null
+++ b/app/button/button_handler.h
@@ -0,0 +1,18 @@
+#ifndef BUTTON_HANDLER_INCLUDED
+#define BUTTON_HANDLER_INCLUDED
+
+#include <stdint.h>
+
+typedef enum {
+ BUTTON_SINGLE_FORWARD,
+ BUTTON_SINGLE_BACKWARD,
+ BUTTON_HOLD_FORWARD,
+ BUTTON_HOLD_BACKWARD,
+ BUTTON_LONG
+} ButtonCombName_t;
+
+void ButtonInit ( void );
+uint8_t Button_GetCurrButtons ( void );
+void Button_ProcessFSM ( void );
+
+#endif //BUTTON_HANDLER_INCLUDED