[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128/i2c Atm128I2C.h, 1.4, 1.5 Atm128I2CMasterPacketP.nc, 1.7, 1.8
David Gay
idgay at users.sourceforge.net
Fri Mar 13 12:15:37 PDT 2009
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/i2c
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14214
Modified Files:
Atm128I2C.h Atm128I2CMasterPacketP.nc
Log Message:
add a #ifdef (ATM128_I2C_EXTERNAL_PULLDOWN) to control the external pulldown presence
Index: Atm128I2C.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/i2c/Atm128I2C.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Atm128I2C.h 12 Dec 2006 18:23:03 -0000 1.4
--- Atm128I2C.h 13 Mar 2009 19:15:35 -0000 1.5
***************
*** 48,50 ****
--- 48,54 ----
};
+ #ifndef ATM128_I2C_EXTERNAL_PULLDOWN
+ #define ATM128_I2C_EXTERNAL_PULLDOWN FALSE
+ #endif
+
#endif // _H_Atm128I2C_h
Index: Atm128I2CMasterPacketP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Atm128I2CMasterPacketP.nc 1 Nov 2007 18:10:36 -0000 1.7
--- Atm128I2CMasterPacketP.nc 13 Mar 2009 19:15:35 -0000 1.8
***************
*** 94,98 ****
atomic {
if (state == I2C_OFF) {
! call I2C.init(FALSE);
call I2C.readCurrent();
call I2C.enable(TRUE);
--- 94,98 ----
atomic {
if (state == I2C_OFF) {
! call I2C.init(ATM128_I2C_EXTERNAL_PULLDOWN);
call I2C.readCurrent();
call I2C.enable(TRUE);
More information about the Tinyos-2-commits
mailing list