From 8a69181362d790cd5375b00b937b9210903f08c0 Mon Sep 17 00:00:00 2001 From: ayer1 Date: Thu, 29 Oct 2009 19:10:17 +0000 Subject: [PATCH] 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. --- tos/platforms/shimmer/MotePlatformC.nc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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(); -- 2.39.2