X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430SpiB1C.nc;h=981b4e40848374d6f81f746b7ada59c0af4b0b12;hb=be862ab07d080085823951d18dcb27a28a310ace;hp=93a9f22b7b28cb52222a5448c3612263ad98a32b;hpb=97db9cf16631f784eea3fc7a3ec925f09bc65c08;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430SpiB1C.nc b/tos/chips/msp430/usci/Msp430SpiB1C.nc index 93a9f22b..981b4e40 100644 --- a/tos/chips/msp430/usci/Msp430SpiB1C.nc +++ b/tos/chips/msp430/usci/Msp430SpiB1C.nc @@ -10,7 +10,7 @@ * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * - Neither the name of the Technische Universität Berlin nor the names + * - Neither the name of the Titanium Mirror, Inc. nor the names * of its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * This configuration provides the interface for using USCI_B1 in its SPI * mode. @@ -48,9 +48,9 @@ * * The implementation will use a default blockSize if set to 0 here. * - * @author R. Steve McKown + * @author R. Steve McKown */ - + #if !defined(__MSP430_HAS_USCI_AB1__) #error "Target does not have a USCI_B1 peripheral (SPI)" #endif @@ -65,7 +65,10 @@ generic configuration Msp430SpiB1C(uint16_t blockSize) { interface SpiPacket; interface ArbiterInfo; /* ??? */ } - uses interface AsyncConfigure as Configure; + uses { + interface AsyncConfigure as Configure; + interface GeneralIO as CSn; /* wire only if a SPI slave only */ + } } implementation { enum { @@ -76,6 +79,7 @@ implementation { SpiByte = SpiP; SpiPacket = SpiP; Configure = SpiP; + CSn = SpiP; components Msp430UsciB1C as UsciC; Resource = UsciC.Resource[CLIENT_ID];