X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2FMotePlatformC.nc;h=1b981ed3643bd30ad608bc88f77f6efa880bf52c;hb=27368506d8de3c90708726891e85f0ff090b3945;hp=6aebc096f9e22786360686feee920a2c62bb361c;hpb=c62eb5a8f569e1a267d10a4c4aa24e8f5151fb8b;p=tinyos-2.x.git diff --git a/tos/platforms/tmirws/MotePlatformC.nc b/tos/platforms/tmirws/MotePlatformC.nc index 6aebc096..1b981ed3 100644 --- a/tos/platforms/tmirws/MotePlatformC.nc +++ b/tos/platforms/tmirws/MotePlatformC.nc @@ -50,7 +50,7 @@ implementation { P1SEL = 0; /* 0 0 0 0 0 0 0 0 */ P1OUT = 0x10; /* 0 0 0 1 0 0 0 0 */ P1DIR = 0x08; /* 0 0 0 0 1 0 0 0 */ - P1REN = 0x10; /* 0 0 0 1 0 0 0 0 */ + P1REN = 0x14; /* 0 0 0 1 0 1 0 0 */ /* Port 2: * 7:SHT_DATA, 6:SCP_DRDY, 5:BUTTONn, 4:USB_SUSPENDn, 3:GM_PWRMON, @@ -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;