]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
restoring control of prog_* pins to use most sensible odds of avoiding
authorayer1 <ayer1>
Thu, 29 Oct 2009 19:10:17 +0000 (19:10 +0000)
committerayer1 <ayer1>
Thu, 29 Oct 2009 19:10:17 +0000 (19:10 +0000)
power burn for un-attentive applications.  prog_out is now high to
avoid enabling expansion boards by default.

tos/platforms/shimmer/MotePlatformC.nc

index a06744f02c350099f0bca9131cbb18af10630db6..9c94b9572915ef805c441139966718f077848eec 100644 (file)
@@ -106,12 +106,13 @@ implementation {
     TOSH_SEL_BT_RXD_MODFUNC();
 
     // BSL Prog Pins tristate em
-    /*
-      TOSH_MAKE_PROG_IN_OUTPUT();
-      TOSH_MAKE_PROG_OUT_OUTPUT();
-      TOSH_SEL_PROG_IN_IOFUNC();
-      TOSH_SEL_PROG_OUT_IOFUNC();
-    */
+
+    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();
+
     // USART lines, attached to a pullup
     TOSH_SEL_UCLK0_IOFUNC();
     TOSH_MAKE_UCLK0_OUTPUT();