M Makefile.common to add tmp102 sensor by default

This commit is contained in:
Enric M. Calvo 2011-03-07 21:23:58 +01:00
parent 9c2f335e57
commit 7fc41e1706
2 changed files with 9 additions and 8 deletions

View File

@ -66,7 +66,7 @@ PROCESS_THREAD(example_unicast_process, ev, data)
PROCESS_BEGIN();
unicast_open(&uc, 133, &unicast_callbacks);
unicast_open(&uc, 199, &unicast_callbacks);
while(1) {
static struct etimer et;
@ -76,12 +76,12 @@ PROCESS_THREAD(example_unicast_process, ev, data)
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
packetbuf_copyfrom("Enric Here!", 12);
addr.u8[0] = 200;
addr.u8[1] = 0;
if(!rimeaddr_cmp(&addr, &rimeaddr_node_addr)) {
unicast_send(&uc, &addr);
}
//packetbuf_copyfrom("Enric Here!", 12);
//addr.u8[0] = 200;
//addr.u8[1] = 0;
//if(!rimeaddr_cmp(&addr, &rimeaddr_node_addr)) {
//unicast_send(&uc, &addr);
//}
}

View File

@ -12,7 +12,8 @@ ARCH=msp430.c leds.c watchdog.c xmem.c \
node-id.c sensors.c button-sensor.c cfs-coffee.c \
radio-sensor.c uart0x.c uart0-putchar.c uip-ipchksum.c \
checkpoint-arch.c slip.c slip_uart0.c \
z1-phidgets.c sht11.c sht11-sensor.c light-sensor.c battery-sensor.c sky-sensors.c
z1-phidgets.c sht11.c sht11-sensor.c light-sensor.c \
battery-sensor.c sky-sensors.c tmp102.c
CONTIKI_TARGET_DIRS = . dev apps net
ifndef CONTIKI_TARGET_MAIN