]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/MotePlatformC.nc
Work on wind sensor move to Davis Instruments.
[tinyos-2.x.git] / tos / platforms / tmirws / MotePlatformC.nc
index 9f7504883ac87ea320ae97f805ea2bf4f0457971..6aebc096f9e22786360686feee920a2c62bb361c 100644 (file)
@@ -80,15 +80,16 @@ implementation {
        P4REN = 0x83;   /* 1 0 0 0 0 0 1 1 */
 
        /* Port 5:
-        * 7:W315, 6:W270, 5:W225, 4:W180, 3:W135, 2:W090, 1:W045, 0:W000
+        * 7:WPOWER, 6:W270, 5:W225, 4:W180, 3:W135, 2:W090, 1:W045, 0:W000
         */
        P5SEL = 0;      /* 0 0 0 0 0 0 0 0 */
        P5OUT = 0;      /* 0 0 0 0 0 0 0 0 */
-       P5DIR = 0;      /* 0 0 0 0 0 0 0 0 */
+       P5DIR = 0x80;   /* 1 0 0 0 0 0 0 0 */
        P5REN = 0;      /* 0 0 0 0 0 0 0 0 */
 
        /* Port 6:
-        * 7:TEMP_PWR, 6:TEMP3, 5:TEMP2, 4:TEMP1, 3:PHOTO, 2:-, 1:-, 0:ADC_VBATT
+        * 7:TEMP_PWR, 6:TEMP3, 5:TEMP2, 4:TEMP1, 3:PHOTO, 2:ADC_WIND, 1:-,
+        * 0:ADC_VBATT
         */
        P6SEL = 0x79;   /* 0 1 1 1 1 0 0 1 */
        P6OUT = 0;      /* 0 0 0 0 0 0 0 0 */