event-system.h 648 B

12345678910111213141516171819202122232425262728
  1. /**
  2. *
  3. * Author(s)...: Pashgan http://ChipEnable.Ru
  4. * Target(s)...: any MCU
  5. * Compiler....: IAR 5.11A
  6. * Description.: Template for tables based event system
  7. * Data........: 30.09.12
  8. *
  9. */
  10. /* Define to prevent recursive inclusion -------------------------------------*/
  11. #pragma once
  12. #ifndef EVENT_SYSTEM_H
  13. #define EVENT_SYSTEM_H
  14. #include "main.h"
  15. #include "list_event.h"
  16. #define SIZE_BUF 50
  17. void ES_Init(es_state_t init_state);
  18. es_state_t ES_GetState(void);
  19. void ES_SetState(es_state_t new_state);
  20. es_event_t ES_GetEvent(void);
  21. void ES_PlaceEvent(es_event_t event);
  22. void ES_Dispatch(es_event_t event);
  23. #endif /* EVENT_SYSTEM_H */