This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.

Dependencies:  

Dependents:   rosserial_mbed robot_S2

Revision:
1:ff0ec969dad1
Parent:
0:77afd7560544
Child:
3:1cf99502f396
--- a/std_msgs/Time.h	Fri Aug 19 09:06:30 2011 +0000
+++ b/std_msgs/Time.h	Sun Oct 16 07:19:36 2011 +0000
@@ -1,5 +1,5 @@
-#ifndef ros_Time_h
-#define ros_Time_h
+#ifndef ros_std_msgs_Time_h
+#define ros_std_msgs_Time_h
 
 #include <stdint.h>
 #include <string.h>
@@ -19,8 +19,8 @@
     {
       int offset = 0;
       union {
-        unsigned long real;
-        unsigned long base;
+        uint32_t real;
+        uint32_t base;
       } u_sec;
       u_sec.real = this->data.sec;
       *(outbuffer + offset + 0) = (u_sec.base >> (8 * 0)) & 0xFF;
@@ -29,8 +29,8 @@
       *(outbuffer + offset + 3) = (u_sec.base >> (8 * 3)) & 0xFF;
       offset += sizeof(this->data.sec);
       union {
-        unsigned long real;
-        unsigned long base;
+        uint32_t real;
+        uint32_t base;
       } u_nsec;
       u_nsec.real = this->data.nsec;
       *(outbuffer + offset + 0) = (u_nsec.base >> (8 * 0)) & 0xFF;
@@ -45,8 +45,8 @@
     {
       int offset = 0;
       union {
-        unsigned long real;
-        unsigned long base;
+        uint32_t real;
+        uint32_t base;
       } u_sec;
       u_sec.base = 0;
       u_sec.base |= ((typeof(u_sec.base)) (*(inbuffer + offset + 0))) << (8 * 0);
@@ -56,8 +56,8 @@
       this->data.sec = u_sec.real;
       offset += sizeof(this->data.sec);
       union {
-        unsigned long real;
-        unsigned long base;
+        uint32_t real;
+        uint32_t base;
       } u_nsec;
       u_nsec.base = 0;
       u_nsec.base |= ((typeof(u_nsec.base)) (*(inbuffer + offset + 0))) << (8 * 0);