From: smckown Date: Wed, 4 Nov 2009 03:55:00 +0000 (+0000) Subject: Fix IO config problems for tmirws board wind direction peripheral. X-Git-Tag: release/2.1.0-2~29 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=27368506d8de3c90708726891e85f0ff090b3945 Fix IO config problems for tmirws board wind direction peripheral. --- diff --git a/tos/platforms/tmirws/MotePlatformC.nc b/tos/platforms/tmirws/MotePlatformC.nc index b5c151bf..1b981ed3 100644 --- a/tos/platforms/tmirws/MotePlatformC.nc +++ b/tos/platforms/tmirws/MotePlatformC.nc @@ -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;