#ifndef ObstacleService_H
#define ObstacleService_H
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */
// typedefs for the states
// State definitions for use with the query function
typedef enum
{
OBSTACLE_INIT, OBSTACLE_IDLE, OBSTACLE_PLAYING, OBSTACLE_GAMEOVER
} ObstacleState_t;
// global variables
extern uint16_t currentObstacleTick;
// Public Function Prototypes
bool InitObstacleService(uint8_t Priority);
bool PostObstacleService(ES_Event_t ThisEvent);
ES_Event_t RunObstacleService(ES_Event_t ThisEvent);
uint16_t PotToTick(uint16_t pot);
#endif /* ObstacleService_H */