bertos/hw/hw_dc_motor.h

Go to the documentation of this file.
00001 
00040 #ifndef HW_DC_MOTOR_H
00041 #define HW_DC_MOTOR_H
00042 
00043 typedef enum MotorDCMap
00044 {
00045 
00046     /* Put here motor dc declaration */
00047     MOTOR_DC_CNT
00048 
00049 } MotorDCMap;
00050 
00051 /*
00052  * Init all pin and device to manage dc motor.
00053  */
00054 #define MOTOR_DC_INIT() \
00055     do { \
00056         /* Implement me! */ \
00057     } while (0)
00058 
00059 
00060 /*
00061  * Enable DC motor.
00062  */
00063 #define DC_MOTOR_ENABLE(dev) \
00064     do { \
00065         /* Implement me! */ \
00066     } while (0)
00067 
00068 /*
00069  * Disable DC motor.
00070  */
00071 #define DC_MOTOR_DISABLE(dev) \
00072     do { \
00073         /* Implement me! */ \
00074     } while (0)
00075 
00076 /*
00077  * Set direction for DC motor.
00078  */
00079 #define DC_MOTOR_SET_DIR(dev, dir) \
00080     do { \
00081         /* Implement me! */ \
00082     } while (0)
00083 
00084 
00085 #endif /* HW_DC_MOTOR_H */