X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2FCC2420TimeSyncMessage.h;h=3051750c3a5c32a383076d32b4a9713eaf62b2a6;hb=52b2570b0e032cc67044d2ab46d90f6bed93620f;hp=a744fd385bc0972f4f81dfb36ac618a12c8ad4c0;hpb=4917627ca523163325c257e5fb684a464fcffa02;p=tinyos-2.x.git diff --git a/tos/chips/cc2420/CC2420TimeSyncMessage.h b/tos/chips/cc2420/CC2420TimeSyncMessage.h index a744fd38..3051750c 100644 --- a/tos/chips/cc2420/CC2420TimeSyncMessage.h +++ b/tos/chips/cc2420/CC2420TimeSyncMessage.h @@ -24,7 +24,18 @@ #ifndef __TIMESYNCMESSAGE_H__ #define __TIMESYNCMESSAGE_H__ +#ifndef AM_TIMESYNCMSG +#define AM_TIMESYNCMSG 0x3D +#endif + // this value is sent in the air typedef nx_uint32_t timesync_radio_t; +typedef struct timesync_footer_t +{ + nx_am_id_t type; + timesync_radio_t timestamp; +} timesync_footer_t; + + #endif//__TIMESYNCMESSAGE_H__