1
0
mirror of https://github.com/Utyff/Zintercom.git synced 2026-01-12 09:17:41 +03:00

some work on ring and btn events

This commit is contained in:
lost
2021-01-07 23:44:10 +02:00
parent 0a89db60ab
commit 93b529496d
4 changed files with 84 additions and 39 deletions

View File

@@ -20,7 +20,8 @@ extern "C" {
#define APP_SAVE_ATTRS_EVT 0x0002
#define APP_BTN_CLICK_EVT 0x0004
#define APP_RING_RUN_EVT 0x0008
#define APP_BTN_HOLD_EVT 0x0010
/*********************************************************************
* MACROS
*/
@@ -109,6 +110,7 @@ typedef struct {
typedef struct {
WorkState_t State;
uint8 RingRunStep;
uint32 pressTime;
} device_state_t;