From eee9d5eaeb92a09e0966f09bb76880ca0f48fba4 Mon Sep 17 00:00:00 2001 From: beutel Date: Fri, 22 Feb 2008 12:58:15 +0000 Subject: [PATCH] reversed set direction and set value to eliminate spikes on initialization of the tmote platform --- tos/platforms/telosb/MotePlatformC.nc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tos/platforms/telosb/MotePlatformC.nc b/tos/platforms/telosb/MotePlatformC.nc index d599811c..623144f3 100644 --- a/tos/platforms/telosb/MotePlatformC.nc +++ b/tos/platforms/telosb/MotePlatformC.nc @@ -64,23 +64,23 @@ implementation { P5SEL = 0; P6SEL = 0; - P1DIR = 0xe0; P1OUT = 0x00; + P1DIR = 0xe0; - P2DIR = 0x7b; P2OUT = 0x30; + P2DIR = 0x7b; - P3DIR = 0xf1; P3OUT = 0x00; + P3DIR = 0xf1; - P4DIR = 0xfd; P4OUT = 0xdd; + P4DIR = 0xfd; - P5DIR = 0xff; P5OUT = 0xff; + P5DIR = 0xff; - P6DIR = 0xff; P6OUT = 0x00; + P6DIR = 0xff; P1IE = 0; P2IE = 0; -- 2.39.2