/** * * Author(s)...: Pashgan http://ChipEnable.Ru * Target(s)...: any MCU * Compiler....: IAR 5.11A * Description.: Template for tables based event system * Data........: 30.09.12 * */ /* Define to prevent recursive inclusion -------------------------------------*/ #pragma once #ifndef EVENT_SYSTEM_H #define EVENT_SYSTEM_H #include "main.h" #include "list_event.h" #define SIZE_BUF 50 void ES_Init(es_state_t init_state); es_state_t ES_GetState(void); void ES_SetState(es_state_t new_state); es_event_t ES_GetEvent(void); void ES_PlaceEvent(es_event_t event); void ES_Dispatch(es_event_t event); #endif /* EVENT_SYSTEM_H */