]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
changes reflect updates brought forward from really crufty sdp.nc;
authorayer1 <ayer1>
Fri, 4 Sep 2009 18:07:07 +0000 (18:07 +0000)
committerayer1 <ayer1>
Fri, 4 Sep 2009 18:07:07 +0000 (18:07 +0000)
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

index c74f7b39786855c5ad553fdc09184e151bcbf331..1362692069efc497938d11766f642dde1d28b79e 100644 (file)
  */
 /**                                   
  * @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;
 }