From a89cc4ae698121d6a98b0e8e8c06cfe2bcaf6b8a Mon Sep 17 00:00:00 2001 From: smckown Date: Wed, 1 Apr 2009 22:34:06 +0000 Subject: [PATCH] Fix up io pin restoration after SPI peripheral is released. --- tos/chips/msp430/usci/Msp430SpiP.nc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tos/chips/msp430/usci/Msp430SpiP.nc b/tos/chips/msp430/usci/Msp430SpiP.nc index dfdf5afd..1f9701cc 100644 --- a/tos/chips/msp430/usci/Msp430SpiP.nc +++ b/tos/chips/msp430/usci/Msp430SpiP.nc @@ -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(); } } -- 2.39.2