Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MX28 by
Revision 2:85216442d3ef, committed 2013-04-03
- Comitter:
- GIPetrou
- Date:
- Wed Apr 03 16:44:50 2013 +0000
- Parent:
- 1:5f537df9dca8
- Commit message:
- Updated code to work with latest mbed version
Changed in this revision
--- a/MX28.h Wed Sep 12 15:59:54 2012 +0000 +++ b/MX28.h Wed Apr 03 16:44:50 2013 +0000 @@ -1,5 +1,5 @@ /* Dynamixel MX28 servo library - * Copyright (c) 2012 Georgios Petrou, MIT License + * Copyright (c) 2012-2013 Georgios Petrou, MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without restriction, @@ -21,6 +21,7 @@ #define MX28_H #include "mbed.h" +#include "SerialHalfDuplex.h" #include "Protocol.h" #include "Utilities.h"
--- a/Protocol.h Wed Sep 12 15:59:54 2012 +0000
+++ b/Protocol.h Wed Apr 03 16:44:50 2013 +0000
@@ -17,8 +17,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifndef PROTOCOL_H
-#define PROTOCOL_H
+#ifndef MX28_PROTOCOL_H
+#define MX28_PROTOCOL_H
#include "mbed.h"
@@ -121,4 +121,4 @@
WAIT_ON_CHECK_SUM
};
-#endif // PROTOCOL_H
\ No newline at end of file
+#endif // MX28_PROTOCOL_H
\ No newline at end of file
--- a/Utilities.h Wed Sep 12 15:59:54 2012 +0000
+++ b/Utilities.h Wed Apr 03 16:44:50 2013 +0000
@@ -16,8 +16,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifndef UTILITIES_H
-#define UTILITIES_H
+#ifndef MX28_UTILITIES_H
+#define MX28_UTILITIES_H
#include "mbed.h"
@@ -84,5 +84,5 @@
static int32_t ConvertUInt8ArrayToInt32(uint8_t* data);
};
-#endif // UTILITIES_H
+#endif // MX28_UTILITIES_H
