[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/byte_radio PacketSerializerP.nc, 1.1.2.8, 1.1.2.9 UartPhyControl.nc, 1.1.2.2, 1.1.2.3

Philipp Huppertz phihup at users.sourceforge.net
Thu Aug 3 11:17:54 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/byte_radio
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv26539/tos/lib/byte_radio

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	PacketSerializerP.nc UartPhyControl.nc 
Log Message:
- updated eyes platform to use usart configure
- a few bug fixes

Index: PacketSerializerP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/byte_radio/PacketSerializerP.nc,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -C2 -d -r1.1.2.8 -r1.1.2.9
*** PacketSerializerP.nc	21 Jun 2006 14:45:10 -0000	1.1.2.8
--- PacketSerializerP.nc	3 Aug 2006 18:17:52 -0000	1.1.2.9
***************
*** 101,105 ****
    
    async event void PhyPacketTx.sendHeaderDone() {
-     signal RadioTimeStamping.transmittedSFD(0, (message_t*)txBufPtr); 
      TransmitNextByte();
    }
--- 101,104 ----
***************
*** 116,119 ****
--- 115,119 ----
      message_radio_header_t* header = getHeader((message_t*) txBufPtr);
      if (byteCnt < header->length + sizeof(message_header_t) ) {  // send (data + header), compute crc
+         if(byteCnt == sizeof(message_header_t)) signal RadioTimeStamping.transmittedSFD(0, (message_t*)txBufPtr); 
          crc = crcByte(crc, ((uint8_t *)(txBufPtr))[byteCnt]);
          call RadioByteComm.txByte(((uint8_t *)(txBufPtr))[byteCnt++]);
***************
*** 140,144 ****
        getHeader(rxBufPtr)->length = sizeof(message_radio_header_t); 
        signal PhyReceive.receiveDetected();
-       signal RadioTimeStamping.receivedSFD(0);
      }
    }
--- 140,143 ----
***************
*** 161,164 ****
--- 160,164 ----
      ((uint8_t *)(rxBufPtr))[byteCnt++] = data;
      if ( byteCnt < getHeader(rxBufPtr)->length + sizeof(message_radio_header_t) ) {
+       if(byteCnt == sizeof(message_radio_header_t)) signal RadioTimeStamping.receivedSFD(0);
        crc = crcByte(crc, data);
        if (getHeader(rxBufPtr)->length > TOSH_DATA_LENGTH) { 

Index: UartPhyControl.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/byte_radio/UartPhyControl.nc,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** UartPhyControl.nc	21 Jun 2006 14:45:11 -0000	1.1.2.2
--- UartPhyControl.nc	3 Aug 2006 18:17:52 -0000	1.1.2.3
***************
*** 46,50 ****
              FALSE otherwise.
    */
!   command error_t setNumPreambles(uint16_t numPreambleBytes);
      
    /**
--- 46,50 ----
              FALSE otherwise.
    */
!   async command error_t setNumPreambles(uint16_t numPreambleBytes);
      
    /**



More information about the Tinyos-2-commits mailing list