#pragma once #ifndef EVENT_LIST_H #define EVENT_LIST_H /* Event codes */ typedef enum { eventNull = 0x00, evNewSecond, evBTN1Pressed, evBTN2Pressed, evBTN3Pressed, evBTN4Pressed, evBTN1Holded, evBTN2Holded, evBTN3Holded, evBTN4Holded, evRefreshCal, evDisplayWDT, evLastEvent } es_event_t; /* State codes */ typedef enum { stNoChange = 0x00, stShowTime, stShowMMSS, stShowWDay, stShowDM, stShowYear, stShowHumidity, stShowTemperature, stShowPressure, stShowSensorData, stShowBright, stSetHH, stSetMM, stSetWD, stSetMD, stSetMon, stSetYear, stShowDNhours, stShowDNbright, stShowDNmode, stShowDNcolour, stSetDayHour, stSetNightHour, stSetDayBright, stSetNightBright, stSetDayMode, stSetNightMode, stSetDayColour, stSetNightColour, /* end */ stLastState } es_state_t; #ifndef NULL #define NULL ((void*)0) #endif #endif