From: ayer1 Date: Thu, 29 Oct 2009 19:02:26 +0000 (+0000) Subject: set prog_out to high to avoid burning excess power if the application X-Git-Tag: rc_6_tinyos_2_1_1~157 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=947d2c396ee0ea804f85407193307c881110a542 set prog_out to high to avoid burning excess power if the application isn't handling this pin but an enable-low expansion board is attached. --- diff --git a/tos/platforms/shimmer2/MotePlatformC.nc b/tos/platforms/shimmer2/MotePlatformC.nc index d1cffba1..e7ac0705 100644 --- a/tos/platforms/shimmer2/MotePlatformC.nc +++ b/tos/platforms/shimmer2/MotePlatformC.nc @@ -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();