Skip to content

Instantly share code, notes, and snippets.

@michaellin
Created December 1, 2015 04:59
Show Gist options
  • Save michaellin/e3a12360b51200625eff to your computer and use it in GitHub Desktop.
Save michaellin/e3a12360b51200625eff to your computer and use it in GitHub Desktop.
#ifndef Pipe1ButtonService_H
#define Pipe1ButtonService_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 { Debouncing1 , Ready2Sample1 } Button1State_t ;
// Public Function Prototypes
bool InitPipe1ButtonDB ( uint8_t Priority );
bool CheckPipe1ButtonEvents ( void );
bool PostPipe1Button( ES_Event ThisEvent );
ES_Event RunPipe1ButtonDB( ES_Event ThisEvent );
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment