This is a program to drive a stepper servomotor from SerialUSB without any other interrution but the serial one.
config.h@0:da3eb35a2787, 2012-04-09 (annotated)
- Committer:
- Yo_Robot
- Date:
- Mon Apr 09 03:10:30 2012 +0000
- Revision:
- 0:da3eb35a2787
version0.2 PTO using Timer2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Yo_Robot | 0:da3eb35a2787 | 1 | |
Yo_Robot | 0:da3eb35a2787 | 2 | #ifndef SETUP_H |
Yo_Robot | 0:da3eb35a2787 | 3 | #define SETUP_H |
Yo_Robot | 0:da3eb35a2787 | 4 | |
Yo_Robot | 0:da3eb35a2787 | 5 | #include "mbed.h" |
Yo_Robot | 0:da3eb35a2787 | 6 | |
Yo_Robot | 0:da3eb35a2787 | 7 | /**@brief |
Yo_Robot | 0:da3eb35a2787 | 8 | * |
Yo_Robot | 0:da3eb35a2787 | 9 | */ |
Yo_Robot | 0:da3eb35a2787 | 10 | void Setup_PTO_Timer2(); |
Yo_Robot | 0:da3eb35a2787 | 11 | |
Yo_Robot | 0:da3eb35a2787 | 12 | |
Yo_Robot | 0:da3eb35a2787 | 13 | |
Yo_Robot | 0:da3eb35a2787 | 14 | void ISR_Serial(); |
Yo_Robot | 0:da3eb35a2787 | 15 | |
Yo_Robot | 0:da3eb35a2787 | 16 | |
Yo_Robot | 0:da3eb35a2787 | 17 | |
Yo_Robot | 0:da3eb35a2787 | 18 | void setPrescaler( int newValue ); |
Yo_Robot | 0:da3eb35a2787 | 19 | |
Yo_Robot | 0:da3eb35a2787 | 20 | |
Yo_Robot | 0:da3eb35a2787 | 21 | |
Yo_Robot | 0:da3eb35a2787 | 22 | void setMR2( int newValue ); |
Yo_Robot | 0:da3eb35a2787 | 23 | |
Yo_Robot | 0:da3eb35a2787 | 24 | |
Yo_Robot | 0:da3eb35a2787 | 25 | |
Yo_Robot | 0:da3eb35a2787 | 26 | void setMR3( int newValue ); |
Yo_Robot | 0:da3eb35a2787 | 27 | |
Yo_Robot | 0:da3eb35a2787 | 28 | |
Yo_Robot | 0:da3eb35a2787 | 29 | |
Yo_Robot | 0:da3eb35a2787 | 30 | void stopTimer2(); |
Yo_Robot | 0:da3eb35a2787 | 31 | |
Yo_Robot | 0:da3eb35a2787 | 32 | |
Yo_Robot | 0:da3eb35a2787 | 33 | |
Yo_Robot | 0:da3eb35a2787 | 34 | void startTimer2(); |
Yo_Robot | 0:da3eb35a2787 | 35 | |
Yo_Robot | 0:da3eb35a2787 | 36 | |
Yo_Robot | 0:da3eb35a2787 | 37 | |
Yo_Robot | 0:da3eb35a2787 | 38 | void setPhaseAB(); |
Yo_Robot | 0:da3eb35a2787 | 39 | |
Yo_Robot | 0:da3eb35a2787 | 40 | |
Yo_Robot | 0:da3eb35a2787 | 41 | void setPhaseBA(); |
Yo_Robot | 0:da3eb35a2787 | 42 | |
Yo_Robot | 0:da3eb35a2787 | 43 | #endif |