]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmicore/MotePlatformC.nc
Sync tmicore MotePlatformC with that of tmirws, and do some comment formatting.
[tinyos-2.x.git] / tos / platforms / tmicore / MotePlatformC.nc
index e32b255eab736ba76cea2b8f64ab718a5bf255b2..c298d760f35d97ec75a3dfbf0d0ce3498fa8697e 100644 (file)
@@ -44,43 +44,54 @@ implementation {
        WDTCTL = WDTPW + WDTHOLD;
 #endif
 
-       /* Port 1: 7:BQSTAT2, 6:BQSTAT1, 5:-, 4:-, 3:CP_CTS, 2:CP_RTS, 1:BSL_TX, 0:- */
+       /* Port 1: 7:BQSTAT2, 6:BQSTAT1, 5:-, 4:-, 3:CP_CTS, 2:CP_RTS,
+        * 1:BSL_TX, 0:-
+        */
        P1SEL = 0;      /* 0 0 0 0 0 0 0 0 */
-       P1OUT = 0x39;   /* 0 0 1 1 1 0 0 1 */
+       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 */
  
        /* Port 2:
-        * 7:-, 6:-, 5:BUTTONn, 4:USB_SUSPENDn, 3:-, 2:BSL_RX, 1:USBPGn, 0:SOLARPGn
+        * 7:-, 6:-, 5:BUTTONn, 4:USB_SUSPENDn, 3:-, 2:BSL_RX, 1:USBPGn,
+        * 0:SOLARPGn
         */
        P2SEL = 0;      /* 0 0 0 0 0 0 0 0 */
        P2OUT = 0xc8;   /* 1 1 0 0 1 0 0 0 */
        P2DIR = 0x00;   /* 0 0 0 0 0 0 0 0 */
        P2REN = 0xc8;   /* 1 1 0 0 1 0 0 0 */
 
-       /* Port 3: 7:UC_RX, 6:UC_TX, 5:-, 4:-, 3:UC_SCK, 2:UC_SOMI, 1:UC_SIMO, 0:- */
+       /* Port 3:
+        * 7:UC_RX, 6:UC_TX, 5:-, 4:-, 3:UC_SCK, 2:UC_SOMI, 1:UC_SIMO, 0:-
+        */
        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 = 0x4a;   /* 0 1 0 0 1 0 1 0 */
        P3REN = 0xb5;   /* 1 0 1 1 0 1 0 1 */
 
-       /* Port 4: 7:-, 6:LED2n, 5:LED1n, 4:-, 3:-, 2:-, 1:-, 0:- */
+       /* Port 4:
+        * 7:-, 6:LED2n, 5:LED1n, 4:-, 3:-, 2:-, 1:-, 0:-
+        */
        P4SEL = 0;      /* 0 0 0 0 0 0 0 0 */
        P4OUT = 0xff;   /* 1 1 1 1 1 1 1 1 */
        P4DIR = 0x60;   /* 0 1 1 0 0 0 0 0 */
        P4REN = 0x9f;   /* 1 0 0 1 1 1 1 1 */
 
-       /* Port 5: 7:-, 6:-, 5:-, 4:-, 3:-, 2:-, 1:-, 0:- */
+       /* Port 5:
+        * 7:-, 6:-, 5:-, 4:-, 3:-, 2:-, 1:-, 0:-
+        */
        P5SEL = 0;      /* 0 0 0 0 0 0 0 0 */
        P5OUT = 0xff;   /* 1 1 1 1 1 1 1 1 */
        P5DIR = 0;      /* 0 0 0 0 0 0 0 0 */
        P5REN = 0xff;   /* 1 1 1 1 1 1 1 1 */
 
-       /* Port 6: 7:-, 6:-, 5:-, 4:-, 3:-, 2:-, 1:-, 0:ADC_VBATT */
+       /* Port 6:
+        * 7:-, 6:-, 5:-, 4:-, 3:-, 2:-, 1:-, 0:ADC_VBATT
+        */
        P6SEL = 0x01;   /* 0 0 0 0 0 0 0 1 */
        P6OUT = 0;      /* 0 0 0 0 0 0 0 0 */
        P6DIR = 0;      /* 0 0 0 0 0 0 0 0 */
-       P6REN = 0xff;   /* 1 1 1 1 1 1 1 1 */
+       P6REN = 0xfe;   /* 1 1 1 1 1 1 1 0 */
 
        P1IE = 0;
        P2IE = 0;