From: smckown Date: Wed, 5 Aug 2009 02:57:10 +0000 (+0000) Subject: tmirws sets outputs going to cp2103 to low (zero) by default. X-Git-Tag: release/2.1.0-2~35 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=b8e292a4eed514b169dfdbb9bb5a56767f97dec7 tmirws sets outputs going to cp2103 to low (zero) by default. If any of these drive a high value toward the cp2103, the cp2103 is not connected to USB power, and VIO is disconnected from Vuc, then funky things happen that can cause GPIO_3, tied to !UC_RST, to sink current and cause the uC to go into reset. Similar bad behavior can happen with !USB_SUSPEND. --- diff --git a/tos/platforms/tmirws/MotePlatformC.nc b/tos/platforms/tmirws/MotePlatformC.nc index 3913e6cc..bb7829e1 100644 --- a/tos/platforms/tmirws/MotePlatformC.nc +++ b/tos/platforms/tmirws/MotePlatformC.nc @@ -48,7 +48,7 @@ implementation { * 1:BSL_TX, 0:WSPEED */ P1SEL = 0; /* 0 0 0 0 0 0 0 0 */ - P1OUT = 0x18; /* 0 0 0 1 1 0 0 0 */ + P1OUT = 0x10; /* 0 0 0 1 0 0 0 0 */ P1DIR = 0x08; /* 0 0 0 0 1 0 0 0 */ P1REN = 0x10; /* 0 0 0 1 0 0 0 0 */ @@ -65,7 +65,7 @@ implementation { * 1:UC_SIMO, 0:SHT_SCK */ P3SEL = 0; /* 0 0 0 0 0 0 0 0 */ - P3OUT = 0xff; /* 1 1 1 1 1 1 1 1 */ + P3OUT = 0x3f; /* 0 0 1 1 1 1 1 1 */ P3DIR = 0x4b; /* 0 1 0 0 1 0 1 1 */ P3REN = 0xb4; /* 1 0 1 1 0 1 0 0 */