From bea4f0efd7805ffbd5060affb25da09669d1f16d Mon Sep 17 00:00:00 2001 From: ayer1 Date: Fri, 4 Sep 2009 18:07:07 +0000 Subject: [PATCH 1/1] changes reflect updates brought forward from really crufty sdp.nc; stdcontrol added back in, and revised spi bus usages (no tos-2 in old sdp!) are pulled in here. --- tos/platforms/shimmer/chips/sd/SDC.nc | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/tos/platforms/shimmer/chips/sd/SDC.nc b/tos/platforms/shimmer/chips/sd/SDC.nc index c74f7b39..13626920 100644 --- a/tos/platforms/shimmer/chips/sd/SDC.nc +++ b/tos/platforms/shimmer/chips/sd/SDC.nc @@ -32,21 +32,25 @@ */ /** * @author Steve Ayer + * @date July 2006 + * @date July 2009 (reworked, updated to maintained version) * @author Konrad Lorincz * @date March 25, 2008 - ported to TOS 2.x */ -configuration SDC -{ - provides interface SD; +configuration SDC { + provides { + interface SD; + interface StdControl; + } } -implementation -{ - components MainC, SDP; - SDP -> MainC.Boot; - SD = SDP; +implementation { + components SDP, new Msp430Usart0C(), HplMsp430InterruptP, LedsC; + + SD = SDP; + StdControl = SDP; - components HplMsp430Usart0C; - SDP.HplMsp430Usart -> HplMsp430Usart0C; - SDP.HplMsp430UsartInterrupts -> HplMsp430Usart0C; + SDP.Usart -> Msp430Usart0C; + SDP.DockInterrupt -> HplMsp430InterruptP.Port25; + SDP.Leds -> LedsC; } -- 2.39.2