00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00021 #ifndef SM_DRIVER_H 00022 #define SM_DRIVER_H 00023 00024 // Direction of stepper motor movement 00025 #define CW 0 00026 #define CCW 1 00027 00033 #define HALFSTEPS 00034 //#define FULLSTEPS 00035 00041 #define SM_PORT PORTD 00042 #define SM_DRIVE DDRD 00043 #define A1 PD7 00044 #define A2 PD6 00045 #define B1 PD5 00046 #define B2 PD4 00047 00048 void sm_driver_Init_IO(void); 00049 unsigned char sm_driver_StepCounter(signed char inc); 00050 void sm_driver_StepOutput(unsigned char pos); 00051 00053 extern int stepPosition; 00054 00055 #endif