]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fix up io pin restoration after SPI peripheral is released.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Wed, 1 Apr 2009 22:34:06 +0000 (22:34 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:18 +0000 (20:01 -0700)
tos/chips/msp430/usci/Msp430SpiP.nc

index dfdf5afd635089b30c5076deae08baa4aa14a245..1f9701cc1da40cb3befded98cc1400b9748d63fe 100644 (file)
@@ -144,13 +144,13 @@ implementation {
       call Registers.clrIfgRx();
 
       /* Restore pins to their pre-configure state */
-      if (is4pin() && (m_pins & PINS_STE))
+      if (is4pin() && (m_pins & (1 << PINS_STE)))
        call STE.selectIOFunc();
-      if (m_pins & PINS_SIMO)
+      if (m_pins & (1 << PINS_SIMO))
        call SIMO.selectIOFunc();
-      if (m_pins & PINS_SOMI)
+      if (m_pins & (1 << PINS_SOMI))
        call SOMI.selectIOFunc();
-      if (m_pins & PINS_CLK)
+      if (m_pins & (1 << PINS_CLK))
        call CLK.selectIOFunc();
     }
   }