[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/stm25p Stm25pSpiP.nc,
1.1.2.12, 1.1.2.13
Jonathan Hui
jwhui at users.sourceforge.net
Thu Sep 28 12:26:24 PDT 2006
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/stm25p
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv30064/chips/stm25p
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
Stm25pSpiP.nc
Log Message:
Changes to SpiByte interface. Return received byte since error_t is no
longer returned.
Index: Stm25pSpiP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/stm25p/Stm25pSpiP.nc,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -C2 -d -r1.1.2.12 -r1.1.2.13
*** Stm25pSpiP.nc 15 Aug 2006 11:59:08 -0000 1.1.2.12
--- Stm25pSpiP.nc 28 Sep 2006 19:26:22 -0000 1.1.2.13
***************
*** 86,95 ****
uint8_t sendCmd( uint8_t cmd, uint8_t len ) {
! uint8_t tmp;
int i;
call CSN.clr();
for ( i = 0; i < len; i++ )
! call SpiByte.write( cmd, &tmp );
call CSN.set();
--- 86,95 ----
uint8_t sendCmd( uint8_t cmd, uint8_t len ) {
! uint8_t tmp = 0;
int i;
call CSN.clr();
for ( i = 0; i < len; i++ )
! tmp = call SpiByte.write( cmd );
call CSN.set();
More information about the Tinyos-2-commits
mailing list