[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/stm25p Stm25pBlockP.nc, 1.1.2.6, 1.1.2.7

Jonathan Hui jwhui at users.sourceforge.net
Fri Jun 2 08:43:34 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/stm25p
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv20851

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	Stm25pBlockP.nc 
Log Message:

Updates to include baseCrc arg in BlockRead interface.



Index: Stm25pBlockP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/stm25p/Attic/Stm25pBlockP.nc,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -d -r1.1.2.6 -r1.1.2.7
*** Stm25pBlockP.nc	17 Feb 2006 22:13:22 -0000	1.1.2.6
--- Stm25pBlockP.nc	2 Jun 2006 15:43:30 -0000	1.1.2.7
***************
*** 101,107 ****
    
    command error_t Read.computeCrc[ storage_block_t b ]( storage_addr_t addr,
! 							storage_len_t len ) {
      m_req.req = S_CRC;
      m_req.addr = addr;
      m_req.len = len;
      return newRequest( b );
--- 101,109 ----
    
    command error_t Read.computeCrc[ storage_block_t b ]( storage_addr_t addr,
! 							storage_len_t len,
! 							uint16_t crc ) {
      m_req.req = S_CRC;
      m_req.addr = addr;
+     m_req.buf = (void*)crc;
      m_req.len = len;
      return newRequest( b );
***************
*** 148,152 ****
        break;
      case S_CRC:
!       call Sector.computeCrc[ b ]( 0, m_block_state[ b ].addr, 
  				   m_block_state[ b ].len );
        break;
--- 150,155 ----
        break;
      case S_CRC:
!       call Sector.computeCrc[ b ]( (uint16_t)m_block_state[ b ].buf, 
! 				   m_block_state[ b ].addr, 
  				   m_block_state[ b ].len );
        break;



More information about the Tinyos-2-commits mailing list