[Tinyos-2-commits]
CVS: tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
FlashVolumeManager.h, 1.3, 1.4 FlashVolumeManagerP.nc, 1.8, 1.9
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Thu Dec 20 13:23:54 PST 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv23513/tos/lib/net/Deluge/FlashVolumeManager
Modified Files:
FlashVolumeManager.h FlashVolumeManagerP.nc
Log Message:
Improve Deluge to report the UID of the running application. tos-deluge script from the tools package was affected by this change.
Index: FlashVolumeManager.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManager.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FlashVolumeManager.h 11 Jul 2007 18:53:39 -0000 1.3
--- FlashVolumeManager.h 20 Dec 2007 21:23:51 -0000 1.4
***************
*** 37,40 ****
--- 37,41 ----
#define SERIALMSG_REPROG_BS 7
#define SERIALMSG_SYNC 8
+ #define SERIALMSG_IDENT 9
typedef nx_struct SerialReqPacket {
Index: FlashVolumeManagerP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerP.nc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** FlashVolumeManagerP.nc 20 Dec 2007 02:31:40 -0000 1.8
--- FlashVolumeManagerP.nc 20 Dec 2007 21:23:51 -0000 1.9
***************
*** 224,227 ****
--- 224,233 ----
sendReply(SUCCESS, sizeof(SerialReplyPacket));
break;
+ case SERIALMSG_IDENT:
+ // This is not send using nx_uint32 in order to maintain
+ // consistency with data from the Deluge image.
+ *(uint32_t*)(&serialMsg_payload->data) = IDENT_UID_HASH;
+ sendReply(SUCCESS, sizeof(SerialReplyPacket) + 4);
+ break;
#endif
}
More information about the Tinyos-2-commits
mailing list