]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
set prog_out to high to avoid burning excess power if the application
authorayer1 <ayer1>
Thu, 29 Oct 2009 19:02:26 +0000 (19:02 +0000)
committerayer1 <ayer1>
Thu, 29 Oct 2009 19:02:26 +0000 (19:02 +0000)
isn't handling this pin but an enable-low expansion board is attached.

tos/platforms/shimmer2/MotePlatformC.nc

index d1cffba1c57fbae81d0eb2ff82035f8a2f5f7f95..e7ac07059c9d3ffa43564f1c5b380147553de6a5 100644 (file)
@@ -134,6 +134,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();
 
@@ -209,15 +210,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();