Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: events.h
- * Author: maxL
- *
- * Created on July 28, 2016, 12:36 PM
- */
- #ifndef EVENTS_H
- #define EVENTS_H
- // A list of your events goes here:
- typedef enum {
- NO_EVENT,
- ENTERED_LIGHT,
- ENTERED_DARK,
- FRONT_BUMP_DOWN,
- FL_BUMP_DOWN,
- FR_BUMP_DOWN,
- BACK_BUMP_DOWN,
- TIMER_0_EXPIRED
- } event_t;
- // A prototype for the function that handles all the event checkers:
- event_t CheckForEvents(void);
- // prototypes for your event checkers go here:
- event_t CheckForEnteredLight(void);
- event_t CheckForEnteredDark(void);
- event_t CheckForFrontBumpDown(void);
- event_t CheckForFLBumpDown(void);
- event_t CheckForFRBumpDown(void);
- event_t CheckForBackBumpDown(void);
- event_t CheckForTimer0Expired(void);
- // etc...
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement