X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmicore%2FMotePlatformC.nc;h=c298d760f35d97ec75a3dfbf0d0ce3498fa8697e;hb=136500fa756cec47339eb13963d429c7b4350146;hp=9e9f675a4581877bf56d581b7d274360307bc0c0;hpb=38d2b17aa6238ebde53333acf9f51c940b8e5f91;p=tinyos-2.x.git diff --git a/tos/platforms/tmicore/MotePlatformC.nc b/tos/platforms/tmicore/MotePlatformC.nc index 9e9f675a..c298d760 100644 --- a/tos/platforms/tmicore/MotePlatformC.nc +++ b/tos/platforms/tmicore/MotePlatformC.nc @@ -28,7 +28,7 @@ */ /** - * @author R. Steve McKown + * @author R. Steve McKown */ module MotePlatformC @safe() { @@ -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;