[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf230
TimeSyncMessage.h, NONE, 1.1 DefaultPacket.h, 1.2,
1.3 TimeSyncMessageP.nc, 1.1, 1.2
Miklos Maroti
mmaroti at users.sourceforge.net
Thu Mar 27 14:59:30 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/rf230
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv23364/tos/chips/rf230
Modified Files:
DefaultPacket.h TimeSyncMessageP.nc
Added Files:
TimeSyncMessage.h
Log Message:
fixed missing header file
--- NEW FILE: TimeSyncMessage.h ---
/*
* 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: DefaultPacket.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf230/DefaultPacket.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DefaultPacket.h 12 Mar 2008 19:42:56 -0000 1.2
--- DefaultPacket.h 27 Mar 2008 21:59:28 -0000 1.3
***************
*** 26,32 ****
--- 26,38 ----
#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
{
Index: TimeSyncMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf230/TimeSyncMessageP.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TimeSyncMessageP.nc 12 Mar 2008 19:42:56 -0000 1.1
--- TimeSyncMessageP.nc 27 Mar 2008 21:59:28 -0000 1.2
***************
*** 22,25 ****
--- 22,27 ----
*/
+ #include <TimeSyncMessage.h>
+
module TimeSyncMessageP
{
***************
*** 49,57 ****
/*----------------- Packet -----------------*/
- typedef nx_struct timesync_footer_t
- {
- nx_uint32_t time_offset; // in micorsec
- } timesync_footer_t;
-
typedef struct timesync_local_t
{
--- 51,54 ----
More information about the Tinyos-2-commits
mailing list