]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
tmirws sets outputs going to cp2103 to low (zero) by default.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Wed, 5 Aug 2009 02:57:10 +0000 (02:57 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:43 +0000 (20:01 -0700)
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.

tos/platforms/tmirws/MotePlatformC.nc

index 3913e6cc4051ae3cb5a866e44c8e7f6ee63cfa3e..bb7829e1060f50b925aec737f8ecca8316b30352 100644 (file)
@@ -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 */