From 8b3e9477d99323570e867e67e4a988d85403cf9d Mon Sep 17 00:00:00 2001 From: nvt-se Date: Thu, 16 Aug 2007 13:54:58 +0000 Subject: [PATCH] call dma_init. --- platform/msb430/contiki-msb430-main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/msb430/contiki-msb430-main.c b/platform/msb430/contiki-msb430-main.c index 15a734122..a93154a9e 100644 --- a/platform/msb430/contiki-msb430-main.c +++ b/platform/msb430/contiki-msb430-main.c @@ -49,17 +49,17 @@ #include "sys/autostart.h" #include "dev/adc.h" +#include "dev/dma.h" +#include "dev/slip.h" #include "net/mac/nullmac.h" #include "net/mac/xmac.h" -#include "dev/slip.h" - SENSORS(NULL); #if WITH_UIP static struct uip_fw_netif slipif = -{UIP_FW_NETIF(192,168,1,2, 255,255,255,255, slip_send)}; + {UIP_FW_NETIF(192,168,1,2, 255,255,255,255, slip_send)}; #else int putchar(int c) @@ -73,6 +73,7 @@ static void set_rime_addr(void) { rimeaddr_t addr; + addr.u16[0] = node_id; rimeaddr_set_node_addr(&addr); } @@ -113,6 +114,7 @@ main(void) /* Platform-specific initialization. */ msb_ports_init(); adc_init(); + dma_init(); clock_init(); leds_init();