X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2FCC2420TimeSyncMessage.h;h=3051750c3a5c32a383076d32b4a9713eaf62b2a6;hp=a744fd385bc0972f4f81dfb36ac618a12c8ad4c0;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 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__