From: smckown Date: Fri, 12 Sep 2008 22:14:18 +0000 (+0000) Subject: Update tmirws/MotePlatformC code as well. X-Git-Tag: release/2.1.0-1~44 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=38d2b17aa6238ebde53333acf9f51c940b8e5f91 Update tmirws/MotePlatformC code as well. --- diff --git a/tos/platforms/tmicore/MotePlatformC.nc b/tos/platforms/tmicore/MotePlatformC.nc index c4eb5028..9e9f675a 100644 --- a/tos/platforms/tmicore/MotePlatformC.nc +++ b/tos/platforms/tmicore/MotePlatformC.nc @@ -59,7 +59,7 @@ 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 = 0x00; /* 0 0 0 0 0 0 0 0 */ + P3SEL = 0; /* 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 = 0xb5; /* 1 0 1 1 0 1 0 1 */ diff --git a/tos/platforms/tmirws/MotePlatformC.nc b/tos/platforms/tmirws/MotePlatformC.nc index 7f360f2c..e79701a3 100644 --- a/tos/platforms/tmirws/MotePlatformC.nc +++ b/tos/platforms/tmirws/MotePlatformC.nc @@ -59,10 +59,10 @@ implementation { P2REN = 0x08; /* 0 0 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:SHT_SCK */ - P3SEL = 0xc7; /* 1 1 0 0 1 1 1 0 */ - P3OUT = 0x7b; /* 0 1 1 1 1 0 1 1 */ + P3SEL = 0; /* 0 0 0 0 0 0 0 0 */ + P3OUT = 0xff; /* 1 1 1 1 1 1 1 1 */ P3DIR = 0x4b; /* 0 1 0 0 1 0 1 1 */ - P3REN = 0x30; /* 0 0 1 1 0 0 0 0 */ + P3REN = 0xb4; /* 1 0 1 1 0 1 0 0 */ /* Port 4: 7:-, 6:LED2n, 5:LED1n, 4:FLH_CSn, 3:SCP_CSn, 2:SCP_PD, 1:-, 0:- */ P4SEL = 0; /* 0 0 0 0 0 0 0 0 */