Dependencies: PinDetect mbed Servo
events.h@0:81f78497df4e, 2012-06-18 (annotated)
- Committer:
- Rufaida
- Date:
- Mon Jun 18 17:47:17 2012 +0000
- Revision:
- 0:81f78497df4e
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rufaida | 0:81f78497df4e | 1 | #include "mbed.h" |
Rufaida | 0:81f78497df4e | 2 | #include "definitions.h" |
Rufaida | 0:81f78497df4e | 3 | #include "PinDetect.h" |
Rufaida | 0:81f78497df4e | 4 | #define q_size 4 |
Rufaida | 0:81f78497df4e | 5 | /*including functions from different files*/ |
Rufaida | 0:81f78497df4e | 6 | extern int call_to_top; |
Rufaida | 0:81f78497df4e | 7 | extern int call_to_bottom; |
Rufaida | 0:81f78497df4e | 8 | /*definitions of event functions*/ |
Rufaida | 0:81f78497df4e | 9 | void new_event(events ev); |
Rufaida | 0:81f78497df4e | 10 | int empty_q (void); |
Rufaida | 0:81f78497df4e | 11 | events get_event(void); |
Rufaida | 0:81f78497df4e | 12 | void top_button (); |
Rufaida | 0:81f78497df4e | 13 | void near_top_button (); |
Rufaida | 0:81f78497df4e | 14 | void near_bottom_button (); |
Rufaida | 0:81f78497df4e | 15 | void bottom_button (); |
Rufaida | 0:81f78497df4e | 16 | void top_call_button (); |
Rufaida | 0:81f78497df4e | 17 | void bottom_call_button (); |
Rufaida | 0:81f78497df4e | 18 | void go_top_button (); |
Rufaida | 0:81f78497df4e | 19 | void go_bottom_button (); |
Rufaida | 0:81f78497df4e | 20 | void safety (); |
Rufaida | 0:81f78497df4e | 21 | /*definition of the pindetect function*/ |
Rufaida | 0:81f78497df4e | 22 | void initialise_events(void); |
Rufaida | 0:81f78497df4e | 23 | /*including this function from event.h*/ |
Rufaida | 0:81f78497df4e | 24 | extern enum events event; |