[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/at45db HplAt45dbByteC.nc, 1.1.2.8, 1.1.2.9

Jonathan Hui jwhui at users.sourceforge.net
Thu Sep 28 12:26:23 PDT 2006


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

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

Changes to SpiByte interface. Return received byte since error_t is no
longer returned.



Index: HplAt45dbByteC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/at45db/HplAt45dbByteC.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
*** HplAt45dbByteC.nc	22 Sep 2006 19:14:41 -0000	1.1.2.8
--- HplAt45dbByteC.nc	28 Sep 2006 19:26:21 -0000	1.1.2.9
***************
*** 85,92 ****
  
    void requestFlashStatus() {
-     uint8_t dummy;
- 
      call HplAt45dbByte.select();
!     call FlashSpi.write(AT45_C_REQ_STATUS, &dummy);
      call HplAt45dbByte.waitIdle();
    }
--- 85,90 ----
  
    void requestFlashStatus() {
      call HplAt45dbByte.select();
!     call FlashSpi.write(AT45_C_REQ_STATUS);
      call HplAt45dbByte.waitIdle();
    }
***************
*** 152,156 ****
  	      break;
  	
! 	    call FlashSpi.write(out, &in);
  	  }
  	call HplAt45dbByte.deselect();
--- 150,154 ----
  	      break;
  	
! 	    in = call FlashSpi.write(out);
  	  }
  	call HplAt45dbByte.deselect();



More information about the Tinyos-2-commits mailing list