Skip to content

Instantly share code, notes, and snippets.

@michaellin
Created December 1, 2015 04:56
Show Gist options
  • Save michaellin/bb899fda7f5b2b546600 to your computer and use it in GitHub Desktop.
Save michaellin/bb899fda7f5b2b546600 to your computer and use it in GitHub Desktop.
#ifndef StartButtonService_H
#define StartButtonService_H
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */
#include "ES_Events.h"
// typedefs for the states
// State definitions for use with the query function
typedef enum { Debouncing , Ready2Sample } ButtonState_t ;
// Public Function Prototypes
bool InitStartButtonDB ( uint8_t Priority );
bool CheckStartButtonEvents ( void );
bool PostStartButton( ES_Event ThisEvent );
ES_Event RunStartButtonDB( ES_Event ThisEvent );
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment