This is a program to drive a stepper servomotor from SerialUSB without any other interrution but the serial one.
Diff: config.h
- Revision:
- 0:da3eb35a2787
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.h Mon Apr 09 03:10:30 2012 +0000 @@ -0,0 +1,43 @@ + +#ifndef SETUP_H +#define SETUP_H + +#include "mbed.h" + +/**@brief + * + */ +void Setup_PTO_Timer2(); + + + +void ISR_Serial(); + + + +void setPrescaler( int newValue ); + + + +void setMR2( int newValue ); + + + +void setMR3( int newValue ); + + + +void stopTimer2(); + + + +void startTimer2(); + + + +void setPhaseAB(); + + +void setPhaseBA(); + +#endif \ No newline at end of file