]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Ensure that uC input pin P1.2_CP_RTS is valid when the CP2103 is off.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Mon, 2 Nov 2009 20:43:24 +0000 (20:43 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:44 +0000 (20:01 -0700)
We accomplish this by enabling an internal pull-down on P1.2 of the MSP430.
It would be better to enable a pull-up, but then we are sending a voltage to
the CP2103 when it is off, which may cause a latch-up problem.  The pull-down
isn't terrible, since it represents the condition whereby the USB host is ready
to receive data from the RWS.  When the USB is connected, this is likely to be
the most common condition.

tos/platforms/tmicore/MotePlatformC.nc
tos/platforms/tmirws/MotePlatformC.nc

index c298d760f35d97ec75a3dfbf0d0ce3498fa8697e..ebf625e87c65568e6818b3fd61a82e8e23f1564d 100644 (file)
@@ -50,7 +50,7 @@ implementation {
        P1SEL = 0;      /* 0 0 0 0 0 0 0 0 */
        P1OUT = 0x31;   /* 0 0 1 1 0 0 0 1 */
        P1DIR = 0x08;   /* 0 0 0 0 1 0 0 0 */
-       P1REN = 0x31;   /* 0 0 1 1 0 0 0 1 */
+       P1REN = 0x35;   /* 0 0 1 1 0 1 0 1 */
  
        /* Port 2:
         * 7:-, 6:-, 5:BUTTONn, 4:USB_SUSPENDn, 3:-, 2:BSL_RX, 1:USBPGn,
index 6aebc096f9e22786360686feee920a2c62bb361c..b5c151bff0225de104b2fe48a80c0d73ee8c5d9e 100644 (file)
@@ -50,7 +50,7 @@ implementation {
        P1SEL = 0;      /* 0 0 0 0 0 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 */
+       P1REN = 0x14;   /* 0 0 0 1 0 1 0 0 */
  
        /* Port 2:
         * 7:SHT_DATA, 6:SCP_DRDY, 5:BUTTONn, 4:USB_SUSPENDn, 3:GM_PWRMON,