]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/shimmer2/MotePlatformC.nc
changed polarity of led pins so that they're off!
[tinyos-2.x.git] / tos / platforms / shimmer2 / MotePlatformC.nc
index 327d17b769c2e281af57b05166ead0c65d6a2cfe..880c531464918b11c5d32d438b091241781f2bf8 100644 (file)
@@ -43,8 +43,6 @@ implementation {
 
   command error_t Init.init() {
     
-    register uint8_t i;
-    
     // have to tell mux to connect path from msp430 to sd
     TOSH_SEL_DOCK_N_IOFUNC();
     TOSH_MAKE_DOCK_N_OUTPUT();
@@ -86,6 +84,10 @@ implementation {
     TOSH_SEL_GREEN_LED_IOFUNC();
     TOSH_MAKE_GREEN_LED_OUTPUT();
 
+    TOSH_SET_RED_LED_PIN();
+    TOSH_SET_YELLOW_LED_PIN();
+    TOSH_SET_GREEN_LED_PIN();
+
     //RADIO PINS
     //CC2420 pins
     TOSH_MAKE_RADIO_VREF_OUTPUT();
@@ -136,6 +138,7 @@ implementation {
     // BSL Prog Pins tristate em
     TOSH_MAKE_PROG_IN_OUTPUT();
     TOSH_MAKE_PROG_OUT_OUTPUT();
+    TOSH_SET_PROG_OUT_PIN();    // some expansion boards have enable low
     TOSH_SEL_PROG_IN_IOFUNC();
     TOSH_SEL_PROG_OUT_IOFUNC();
 
@@ -211,15 +214,6 @@ implementation {
     TOSH_SEL_SOMI1_IOFUNC();
     TOSH_MAKE_SOMI1_INPUT();
 
-    /*
-     * sd pins are raised as part of power-cyling card
-     * and, they have pullups.
-     *
-  
-    for (i = 0; i < 20; i++)
-      TOSH_uwait(1000);                // one millisecond
-    */
-  
     TOSH_SET_SD_CS_N_PIN();
     TOSH_SET_SD_DI_PIN();
     TOSH_SET_SD_CLK_PIN();