You are on page 1of 1

/****************************************************************************

Header file for template service


based on the Gen 2 Events and Services Framework

****************************************************************************/

#ifndef LEDService_H
#define LEDService_H

#include <stdint.h>
#include <stdbool.h>

#include "ES_Events.h"
#include "ES_Port.h"
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */

//Typedefs for states:


typedef enum
{
InitLEDState, Writing, Waiting
}LEDState_t;

// Public Function Prototypes

bool InitLEDService(uint8_t Priority);


bool PostLEDService(ES_Event_t ThisEvent);
ES_Event_t RunLEDService(ES_Event_t ThisEvent);

#endif /* LEDService_H */

You might also like