[Tinyos-2-commits] [tinyos-main] r5767 committed - Fix: Workaround to fix problem with I2C driver

tinyos-main at googlecode.com tinyos-main at googlecode.com
Fri Sep 30 14:41:18 PDT 2011


Revision: 5767
Author:   alinan at zolertia.com
Date:     Fri Sep 30 14:40:00 2011
Log:      Fix: Workaround to fix problem with I2C driver
http://code.google.com/p/tinyos-main/source/detail?r=5767

Modified:
  /trunk/tos/chips/msp430/x2xxx/usci/HplMsp430UsciB1P.nc

=======================================
--- /trunk/tos/chips/msp430/x2xxx/usci/HplMsp430UsciB1P.nc	Sun Aug 14  
07:32:53 2011
+++ /trunk/tos/chips/msp430/x2xxx/usci/HplMsp430UsciB1P.nc	Fri Sep 30  
14:40:00 2011
@@ -266,8 +266,12 @@

    async command void Usci.enableI2C() {
      atomic {
-      #if defined(PLATFORM_Z1)
-        atomic P5DIR |= 0x06;
+ #ifdef PLATFORM_Z1
+      /* Dirty, needs fixing */
+        P5OUT &= ~0x06;
+        P5REN &= ~0x06;
+        P5OUT |= 0x06;
+        P5REN |= 0x06;
        #endif
        call USDA.selectModuleFunc();
        call USCL.selectModuleFunc();


More information about the Tinyos-2-commits mailing list