From: ayer1 Date: Thu, 29 Oct 2009 19:10:17 +0000 (+0000) Subject: restoring control of prog_* pins to use most sensible odds of avoiding X-Git-Tag: rc_6_tinyos_2_1_1~156 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=8a69181362d790cd5375b00b937b9210903f08c0 restoring control of prog_* pins to use most sensible odds of avoiding power burn for un-attentive applications. prog_out is now high to avoid enabling expansion boards by default. --- diff --git a/tos/platforms/shimmer/MotePlatformC.nc b/tos/platforms/shimmer/MotePlatformC.nc index a06744f0..9c94b957 100644 --- a/tos/platforms/shimmer/MotePlatformC.nc +++ b/tos/platforms/shimmer/MotePlatformC.nc @@ -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();