[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/null ActiveMessageC.nc, 1.4, 1.5 PlatformLedsC.nc, 1.4, 1.5 PlatformSerialC.nc, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Wed May 23 15:17:51 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/null
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv32342

Modified Files:
	ActiveMessageC.nc PlatformLedsC.nc PlatformSerialC.nc 
Log Message:
bit rot fixes


Index: ActiveMessageC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/null/ActiveMessageC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ActiveMessageC.nc	12 Dec 2006 18:23:44 -0000	1.4
--- ActiveMessageC.nc	23 May 2007 22:17:49 -0000	1.5
***************
*** 93,96 ****
--- 93,102 ----
    }
  
+   command am_addr_t AMPacket.source(message_t* amsg) {
+     return 0;
+   }
+ 
+   command void AMPacket.setSource(message_t* amsg, am_addr_t addr) { }
+ 
    command void* Receive.getPayload[uint8_t id](message_t* msg, uint8_t* len) {
      return NULL;

Index: PlatformLedsC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/null/PlatformLedsC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PlatformLedsC.nc	12 Dec 2006 18:23:44 -0000	1.4
--- PlatformLedsC.nc	23 May 2007 22:17:49 -0000	1.5
***************
*** 82,84 ****
--- 82,109 ----
      call Init.init();
    }
+ 
+   async command bool Led0.isInput() { 
+     return FALSE;
+   }
+ 
+   async command bool Led0.isOutput() { 
+     return FALSE;
+   }
+ 
+   async command bool Led1.isInput() { 
+     return FALSE;
+   }
+ 
+   async command bool Led1.isOutput() { 
+     return FALSE;
+   }
+ 
+   async command bool Led2.isInput() { 
+     return FALSE;
+   }
+ 
+   async command bool Led2.isOutput() { 
+     return FALSE;
+   }
+ 
  }

Index: PlatformSerialC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/null/PlatformSerialC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PlatformSerialC.nc	12 Dec 2006 18:23:44 -0000	1.4
--- PlatformSerialC.nc	23 May 2007 22:17:49 -0000	1.5
***************
*** 14,35 ****
  
  module PlatformSerialC {
-   provides interface Init;
    provides interface StdControl;
!   provides interface SerialByteComm;
  }
  implementation {
!   async command error_t SerialByteComm.put(uint8_t data) {
      return SUCCESS;
    }
  
!   command error_t Init.init() {
      return SUCCESS;
    }
  
!   command error_t StdControl.start() {
      return SUCCESS;
    }
  
!   command error_t StdControl.stop() {
      return SUCCESS;
    }
--- 14,51 ----
  
  module PlatformSerialC {
    provides interface StdControl;
!   provides interface UartByte;
!   provides interface UartStream;
  }
  implementation {
!   command error_t StdControl.start() {
      return SUCCESS;
    }
  
!   command error_t StdControl.stop() {
      return SUCCESS;
    }
  
!   async command error_t UartByte.send( uint8_t byte ) {
      return SUCCESS;
    }
  
!   async command error_t UartByte.receive( uint8_t* byte, uint8_t timeout ) {
!     return SUCCESS;
!   }
! 
!   async command error_t UartStream.send( uint8_t* buf, uint16_t len ) {
!     return SUCCESS;
!   }
! 
!   async command error_t UartStream.enableReceiveInterrupt() {
!     return SUCCESS;
!   }
! 
!   async command error_t UartStream.disableReceiveInterrupt() {
!     return SUCCESS;
!   }
! 
!   async command error_t UartStream.receive( uint8_t* buf, uint16_t len ) {
      return SUCCESS;
    }



More information about the Tinyos-2-commits mailing list