From 947d2c396ee0ea804f85407193307c881110a542 Mon Sep 17 00:00:00 2001 From: ayer1 Date: Thu, 29 Oct 2009 19:02:26 +0000 Subject: [PATCH] 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. --- tos/platforms/shimmer2/MotePlatformC.nc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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(); -- 2.39.2