]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmicore/MotePlatformC.nc
Clean up pin configuration for peripheral code. Here's the best practice
[tinyos-2.x.git] / tos / platforms / tmicore / MotePlatformC.nc
index bdf8d366e5297ec2e573fd3fec0d9377b30f7123..c4eb5028a3b5894305aa35e81cb3fa2d85161af8 100644 (file)
@@ -59,10 +59,10 @@ implementation {
        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:- */
-       P3SEL = 0xce;   /* 1 1 0 0 1 1 1 0 */
-       P3OUT = 0x7b;   /* 0 1 1 1 1 0 1 1 */
+       P3SEL = 0x00;   /* 0 0 0 0 0 0 0 0 */
+       P3OUT = 0xff;   /* 1 1 1 1 1 1 1 1 */
        P3DIR = 0x4a;   /* 0 1 0 0 1 0 1 0 */
-       P3REN = 0x31;   /* 0 0 1 1 0 0 0 1 */
+       P3REN = 0xb5;   /* 1 0 1 1 0 1 0 1 */
 
        /* Port 4: 7:-, 6:LED2n, 5:LED1n, 4:-, 3:-, 2:-, 1:-, 0:- */
        P4SEL = 0;      /* 0 0 0 0 0 0 0 0 */