]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
fixed missing header file
authormmaroti <mmaroti>
Thu, 27 Mar 2008 21:59:28 +0000 (21:59 +0000)
committermmaroti <mmaroti>
Thu, 27 Mar 2008 21:59:28 +0000 (21:59 +0000)
tos/chips/rf230/DefaultPacket.h
tos/chips/rf230/TimeSyncMessage.h [new file with mode: 0644]
tos/chips/rf230/TimeSyncMessageP.nc
tos/platforms/iris/ActiveMessageC.nc

index dcf62d3c6ff74b775e44ef0869016ae44c21792f..65ab1fe5acb7b6f19753efea7143e122d4248010 100644 (file)
 #define __DEFAULTPACKET_H__
 
 #include <IEEE154Packet.h>
+#include <TimeSyncMessage.h>
 
 typedef ieee154_header_t defpacket_header_t;
 
+typedef nx_struct defpacket_footer_t
+{
+       timesync_footer_t timesync;
+} defpacket_footer_t;
+
 typedef nx_struct defpacket_metadata_t
 {
        nx_uint8_t flags;
diff --git a/tos/chips/rf230/TimeSyncMessage.h b/tos/chips/rf230/TimeSyncMessage.h
new file mode 100644 (file)
index 0000000..1099410
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2007, Vanderbilt University
+ * All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose, without fee, and without written agreement is
+ * hereby granted, provided that the above copyright notice, the following
+ * two paragraphs and the author appear in all copies of this software.
+ * 
+ * IN NO EVENT SHALL THE VANDERBILT UNIVERSITY BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
+ * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE VANDERBILT
+ * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * 
+ * THE VANDERBILT UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE VANDERBILT UNIVERSITY HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Author: Miklos Maroti
+ */
+
+#ifndef __TIMESYNCMESSAGE_H__
+#define __TIMESYNCMESSAGE_H__
+
+typedef nx_struct timesync_footer_t
+{
+       nx_uint32_t time_offset;        // in micorsec
+} timesync_footer_t;
+
+#endif//__TIMESYNCMESSAGE_H__
index 8b99ccc845665611bda4a658dadf101f3ce55918..9a936c80266df4cf48fa5671b140ff26b2556746 100644 (file)
@@ -21,6 +21,8 @@
  * Author: Miklos Maroti
  */
 
+#include <TimeSyncMessage.h>
+
 module TimeSyncMessageP
 {
        provides
@@ -48,11 +50,6 @@ implementation
 {
 /*----------------- Packet -----------------*/
 
-       typedef nx_struct timesync_footer_t
-       {
-               nx_uint32_t time_offset;        // in micorsec
-       } timesync_footer_t;
-
        typedef struct timesync_local_t
        {
                uint32_t event_time;            // in microsec
index d23ba3e2706f53546cf17cd21d0dd05b4d4b9747..3253e611d0ae2e52e6046d31c25e332b44c46d08 100644 (file)
@@ -36,7 +36,6 @@ configuration ActiveMessageC
                interface PacketAcknowledgements;
                interface PacketField<uint8_t> as PacketLinkQuality;
                interface PacketTimeStamp<TMicro, uint16_t>;
-               interface PacketTimeSynch<TMicro, uint16_t>;
        }
 }
 
@@ -54,5 +53,4 @@ implementation
        PacketAcknowledgements = MAC;
        PacketLinkQuality = MAC;
        PacketTimeStamp = MAC;
-       PacketTimeSynch = MAC;
 }