[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/handhelds/tos/platform/shimmer2
SD_DMA_C.nc, NONE, 1.1
steve ayer
ayer1 at users.sourceforge.net
Thu Mar 27 12:16:04 PDT 2008
Update of /cvsroot/tinyos/tinyos-1.x/contrib/handhelds/tos/platform/shimmer2
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv15724
Added Files:
SD_DMA_C.nc
Log Message:
platform wiring for new driver SD_DMA_M.
--- NEW FILE: SD_DMA_C.nc ---
/*
* Copyright (c) 2006, Intel Corporation
* 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 Intel Corporation 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.
*
* Author: Steve Ayer
* July, 2006
* Stephen Linder spl at alum.mit.edu
* October 2007
* communicate with a micro-sd slot resident on shimmer
Feburary 2008
--------------
Supported interrupt from docking station pin.
*/
configuration SD_DMA_C {
provides {
interface StdControl;
interface SD;
}
}
implementation {
components SD_DMA_M, HPLUSART0M, TimerC, MSP430InterruptC, LedsC, DMA_M;
StdControl = SD_DMA_M;
SD = SD_DMA_M;
SD_DMA_M.USARTControl -> HPLUSART0M;
SD_DMA_M.blinkErrorTimer -> TimerC.Timer[unique("Timer")];
SD_DMA_M.DockInterrupt -> MSP430InterruptC.Port23;
SD_DMA_M.Leds -> LedsC;
// added support for DMA transfer SPL 10/16/07
SD_DMA_M.DMA1 -> DMA_M.DMA[1];
SD_DMA_M.DMA2 -> DMA_M.DMA[2];
}
More information about the Tinyos-contrib-commits
mailing list