test upload STMicroelectronics L6470
Diff: L6470.h
- Revision:
- 1:bb4bb05904cb
- Parent:
- 0:26699d53cd2a
- Child:
- 2:97c203ed65da
- Child:
- 3:f0e29d94b863
--- a/L6470.h Tue Dec 25 02:39:30 2012 +0000 +++ b/L6470.h Tue Dec 25 02:46:32 2012 +0000 @@ -1,3 +1,5 @@ +//This 'L6470' libraly maked by Brid + #ifndef MBED_L6470 #define MBED_L6470 @@ -6,7 +8,7 @@ #define FORWARD 1 #define REVERSE 0 -// name (length<<2)+address +// name (length<<8)+address #define ABS_POS ((22<<8)+0x01) //Current position #define EL_POS ((9<<8)+0x02) //Electrical position #define MARK ((22<<8)+0x03) //Mark position