1 /****************************************************************************
 2 
 3   Header file for template service
 4   based on the Gen 2 Events and Services Framework
 5 
 6  ****************************************************************************/
 7 
 8 #ifndef ServServo_H
 9 #define ServServo_H
10 
11 #include <xc.h>
12 #include "ES_Types.h"
13 #include "PIC32_SPI_HAL.h"
14 
15 #define SERVO_BROW_L 1
16 #define SERVO_BROW_R 2
17 #define SERVO_DUNK 4
18 
19 // Public Function Prototypes
20 bool InitServoService(uint8_t Priority);
21 bool PostServoService(ES_Event_t ThisEvent);
22 ES_Event_t RunServoService(ES_Event_t ThisEvent);
23 void PrintCmdDesc(uint8_t command);
24 
25 #endif /* ServServo_H */
26