From b72c2283794116970e4c6d838f4e376f0e94b5b5 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Fri, 21 Sep 2007 14:53:36 +0000 Subject: [PATCH] * Enable rtimers. * Specify port direction first. --- platform/msb430/contiki-msb430-main.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/platform/msb430/contiki-msb430-main.c b/platform/msb430/contiki-msb430-main.c index 600635086..fec3ddd3e 100644 --- a/platform/msb430/contiki-msb430-main.c +++ b/platform/msb430/contiki-msb430-main.c @@ -47,6 +47,7 @@ #include "sys/procinit.h" #include "sys/autostart.h" +#include "sys/rtimer.h" #include "dev/adc.h" #include "dev/dma.h" @@ -81,12 +82,12 @@ set_rime_addr(void) static void msb_ports_init(void) { - P1SEL = 0x00; P1OUT = 0x00; P1DIR = 0x00; - P2SEL = 0x00; P2OUT = 0x18; P2DIR = 0x1A; - P3SEL = 0x00; P3OUT = 0x09; P3DIR = 0x21; - P4SEL = 0x00; P4OUT = 0x00; P4DIR = 0x00; - P5SEL = 0x0E; P5OUT = 0xF9; P5DIR = 0xFD; - P6SEL = 0x07; P6OUT = 0x00; P6DIR = 0xC8; + P1DIR = 0x00; P1SEL = 0x00; P1OUT = 0x00; + P2DIR = 0x1A; P2SEL = 0x00; P2OUT = 0x18; + P3DIR = 0x21; P3SEL = 0x00; P3OUT = 0x09; + P4DIR = 0x00; P4SEL = 0x00; P4OUT = 0x07; + P5DIR = 0xFD; P5SEL = 0x0E; P5OUT = 0xF9; + P6DIR = 0xC8; P6SEL = 0x07; P6OUT = 0x00; } int @@ -120,6 +121,8 @@ main(void) slip_arch_init(BAUD2UBR(115200)); #endif + rtimer_init(); + /* System services */ process_start(&etimer_process, NULL); //process_start(&sensors_process, NULL);