[Tinyos-commits] CVS: tinyos-1.x/tools/src/sf platform.h, 1.2, 1.3 sf.c, 1.8, 1.9

David Gay idgay at users.sourceforge.net
Wed Jan 25 09:54:12 PST 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/src/sf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25409

Modified Files:
	platform.h sf.c 
Log Message:
Patch from henri.dubois-ferriere at epfl.ch for eyes, tinynode platforms


Index: platform.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/sf/platform.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** platform.h	13 Dec 2004 19:52:14 -0000	1.2
--- platform.h	25 Jan 2006 17:54:08 -0000	1.3
***************
*** 5,8 ****
--- 5,10 ----
  #define TELOS   2
  #define MICAZ   3
+ #define EYES 4
+ #define TINYNODE 5
  
  #if !defined(__CYGWIN__)

Index: sf.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/sf/sf.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** sf.c	13 Dec 2004 19:56:00 -0000	1.8
--- sf.c	25 Jan 2006 17:54:10 -0000	1.9
***************
*** 253,256 ****
--- 253,260 ----
    else if (strcasecmp(platformName, "micaz") == 0)
      platformGuess = MICAZ;
+   else if (strcasecmp(platformName, "eyes") == 0)
+     platformGuess = EYES;
+   else if (strcasecmp(platformName, "tinynode") == 0)
+     platformGuess = TINYNODE;
  
    return platformGuess;
***************
*** 263,267 ****
    if (argc != 5)
      {
!       fprintf(stderr, "Usage: %s <port> <device> <rate> <platform> - act as a serial forwarder on <port>\n  (listens to serial port <device> at baud rate <rate>)\n assume that device connected to the serial port is a <platform> mote\nValid platforms: mica, mica2, mica2dot, avrmote, telos\n ", argv[0]);
        exit(2);
      }
--- 267,271 ----
    if (argc != 5)
      {
!       fprintf(stderr, "Usage: %s <port> <device> <rate> <platform> - act as a serial forwarder on <port>\n  (listens to serial port <device> at baud rate <rate>)\n assume that device connected to the serial port is a <platform> mote\nValid platforms: mica, mica2, mica2dot, avrmote, telos, eyes, tinynode\n ", argv[0]);
        exit(2);
      }



More information about the Tinyos-commits mailing list