diff options
author | Oxore <oxore@protonmail.com> | 2023-03-05 20:20:45 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-03-05 20:20:45 +0300 |
commit | ea807de65b0485ac58b6eae576209c64d4d5c4e9 (patch) | |
tree | b4264d20e1d700cfd9e0ece9d847a825dd1dfc03 /app/button/button_handler.h | |
parent | dd01e7ed22cea652061f0d12cecf929e04b285e9 (diff) |
Split app code and third party libraries
Diffstat (limited to 'app/button/button_handler.h')
-rw-r--r-- | app/button/button_handler.h | 18 |
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 |