#pragma once #ifndef EVENT_LIST_H #define EVENT_LIST_H /* Event codes */ typedef enum { eventNull = 0x00, evNewSecond, evBTN1Pressed, evBTN2Pressed, evBTN3Pressed, evBTN1Holded, evBTN2Holded, evBTN3Holded, evSwitch1On, evSwitch1Off, evSwitch2On, evSwitch2Off, evSwitch3On, evSwitch3Off, evSwitch4On, evSwitch4Off, evSwitch5On, evSwitch5Off, evRefreshCal, evDisplayWDT, evLastEvent } es_event_t; /* State codes */ typedef enum { stNoChange = 0x00, stShowTime, stShowMMSS, stShowDate, stSetHH, stSetMM, stSetWD, stSetMD, stSetMon, stSetYear, /* end */ stLastState } es_state_t; #ifndef NULL #define NULL ((void*)0) #endif #endif