Startbuttonh Final
Startbuttonh Final
"inc/hw_memmap.h"
"inc/hw_types.h"
"inc/hw_gpio.h"
"inc/hw_sysctl.h"
"driverlib/sysctl.h"
"driverlib/pin_map.h"
"driverlib/gpio.h"
#include "BITDEFS.H"
#ifndef ALL_BITS
#define ALL_BITS (0xff<<2)
#endif
// typedefs for the states
// State definitions for use with the query function
typedef enum { ButtonInit, DebouncingStart,
DebouncingWeather, WaitingForStart,
WaitingToReset, WaitingForWeather,
} SBState_t ;
// Public Function Prototypes
bool InitializeStartButton ( uint8_t Priority );
bool PostStartButton( ES_Event ThisEvent );
ES_Event RunStartButtonSM( ES_Event ThisEvent );
bool CheckButtonEvents(void);
#endif // StartButton_H