/***************************************************************************
Stage_LEDs.h
Team Firefox
ME 218A
This software
module
1) controls the 3
Stage LEDs with a 4 line decoder
Inputs:
(none)
Outputs:
T2 - select0 to
decoder
T3 - select1 to
decoder
****************************************************************************/
/*----------------------------
Include Files ------------------------------*/
#ifndef Stage_LEDs_h
#define Stage_LEDs_h
#include <string.h>
#include
<timers12.h>
#include <stdio.h>
#include
<ME218_C32.h>
#include
"ADS12.h"
/*----------------------------
Module Defines ------------------------------*/
typedef enum { STAGE_IDLE,
STAGE_IR,
STAGE_GRAPPLE,
STAGE_DOWNLOAD
} STAGE_t;
/*---------------------
Public Function Prototypes -------------------------*/
void resetStage(void); //Sets the current stage to
STAGE_IDLE (all stage LEDs off)
void activateStage(STAGE_t); //Turns
on the specified stage LED
#endif