From: ayer1 Date: Thu, 11 Mar 2010 21:23:03 +0000 (+0000) Subject: adding correct wiring for this platform. X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=1cbe81f30d16cb88a92e4512a67ab7cc7006eead adding correct wiring for this platform. --- diff --git a/tos/platforms/shimmer2/chips/sd/SDC.nc b/tos/platforms/shimmer2/chips/sd/SDC.nc new file mode 100644 index 00000000..1ab28783 --- /dev/null +++ b/tos/platforms/shimmer2/chips/sd/SDC.nc @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2005 Hewlett-Packard Company + * All rights reserved + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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 Hewlett-Packard Company nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * communicate with a micro-sd slot wired to a telosb header + */ +/** + * @author Steve Ayer + * @date July 2006 + * @date July 2009 (reworked, updated to maintained version) + * @date March 2010 (reworked for shimmer2) + * @author Konrad Lorincz + * @date March 25, 2008 - ported to TOS 2.x + */ + +configuration SDC { + provides { + interface SD; + interface StdControl; + } +} +implementation { + components SDP; + SD = SDP; + StdControl = SDP; + + components new Msp430Usart0C(); + SDP.Usart -> Msp430Usart0C; + + components HplMsp430InterruptP; + SDP.DockInterrupt -> HplMsp430InterruptP.Port23; + + components LedsC; + SDP.Leds -> LedsC; +}