Skip to content

Instantly share code, notes, and snippets.

@michaellin
Created December 1, 2015 05:06
Show Gist options
  • Save michaellin/b02cb74dd6e32a347394 to your computer and use it in GitHub Desktop.
Save michaellin/b02cb74dd6e32a347394 to your computer and use it in GitHub Desktop.
#ifndef Pipe2ButtonService_H
#define Pipe2ButtonService_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 { Debouncing2 , Ready2Sample2 } Button2State_t ;
// Public Function Prototypes
bool InitPipe2ButtonDB ( uint8_t Priority );
bool CheckPipe2ButtonEvents ( void );
bool PostPipe2Button( ES_Event ThisEvent );
ES_Event RunPipe2ButtonDB( ES_Event ThisEvent );
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment