]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fix IO config problems for tmirws board wind direction peripheral.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Wed, 4 Nov 2009 03:55:00 +0000 (03:55 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:44 +0000 (20:01 -0700)
tos/platforms/tmirws/MotePlatformC.nc

index b5c151bff0225de104b2fe48a80c0d73ee8c5d9e..1b981ed3643bd30ad608bc88f77f6efa880bf52c 100644 (file)
@@ -80,21 +80,21 @@ implementation {
        P4REN = 0x83;   /* 1 0 0 0 0 0 1 1 */
 
        /* Port 5:
-        * 7:WPOWER, 6:W270, 5:W225, 4:W180, 3:W135, 2:W090, 1:W045, 0:W000
+        * 7:WPOWER, 6:WDEAD, 5:-, 4:-, 3:-, 2:-, 1:-, 0:-
         */
        P5SEL = 0;      /* 0 0 0 0 0 0 0 0 */
-       P5OUT = 0;      /* 0 0 0 0 0 0 0 0 */
+       P5OUT = 0x3f;   /* 0 0 1 1 1 1 1 1 */
        P5DIR = 0x80;   /* 1 0 0 0 0 0 0 0 */
-       P5REN = 0;      /* 0 0 0 0 0 0 0 0 */
+       P5REN = 0x3f;   /* 0 0 1 1 1 1 1 1 */
 
        /* Port 6:
         * 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 */
+       P6SEL = 0x7d;   /* 0 1 1 1 1 1 0 1 */
        P6OUT = 0;      /* 0 0 0 0 0 0 0 0 */
        P6DIR = 0x80;   /* 1 0 0 0 0 0 0 0 */
-       P6REN = 0x06;   /* 0 0 0 0 0 1 1 0 */
+       P6REN = 0x02;   /* 0 0 0 0 0 0 1 0 */
 
        P1IE = 0;
        P2IE = 0;