a simple code for elevator
Dependencies: PinDetect mbed Servo
event_and_actions.h
- Committer:
- kemken
- Date:
- 2012-06-04
- Revision:
- 0:85829f7bbe62
File content as of revision 0:85829f7bbe62:
/* * ENEVTS AND ACTIONS FUNCTIONS. * ^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^^ * * FILE NAME: event_and_actins.h * USAGE: library file of event_and_actins.cpp */ /* * including the wanted library files. */ #include "mbed.h" #include "main.h" /*function prototype*/ void move_to_bottom (void); void door_top (void); void motor_stop_tp (void); void motor_stop_bm (void); void open_top (void); void close_top (void); void slow_down_tp (void); void slow_down_bm (void); void door_bottom (void); void move_to_top (void); void open_bottom (void); void close_bottom (void); void ND (void); void new_event (event next_event); void slow_back (void); /*variable named current_state that has been defined in another location*/ extern state current_state;