From ea807de65b0485ac58b6eae576209c64d4d5c4e9 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 5 Mar 2023 20:20:45 +0300 Subject: Split app code and third party libraries --- app/button/button_handler.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/button/button_handler.h (limited to 'app/button/button_handler.h') 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 + +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 -- cgit v1.2.3