mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-01 02:29:03 +00:00
M Makefile.common to add tmp102 sensor by default
This commit is contained in:
parent
9c2f335e57
commit
7fc41e1706
@ -66,7 +66,7 @@ PROCESS_THREAD(example_unicast_process, ev, data)
|
|||||||
|
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
unicast_open(&uc, 133, &unicast_callbacks);
|
unicast_open(&uc, 199, &unicast_callbacks);
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
static struct etimer et;
|
static struct etimer et;
|
||||||
@ -76,12 +76,12 @@ PROCESS_THREAD(example_unicast_process, ev, data)
|
|||||||
|
|
||||||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||||
|
|
||||||
packetbuf_copyfrom("Enric Here!", 12);
|
//packetbuf_copyfrom("Enric Here!", 12);
|
||||||
addr.u8[0] = 200;
|
//addr.u8[0] = 200;
|
||||||
addr.u8[1] = 0;
|
//addr.u8[1] = 0;
|
||||||
if(!rimeaddr_cmp(&addr, &rimeaddr_node_addr)) {
|
//if(!rimeaddr_cmp(&addr, &rimeaddr_node_addr)) {
|
||||||
unicast_send(&uc, &addr);
|
//unicast_send(&uc, &addr);
|
||||||
}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@ ARCH=msp430.c leds.c watchdog.c xmem.c \
|
|||||||
node-id.c sensors.c button-sensor.c cfs-coffee.c \
|
node-id.c sensors.c button-sensor.c cfs-coffee.c \
|
||||||
radio-sensor.c uart0x.c uart0-putchar.c uip-ipchksum.c \
|
radio-sensor.c uart0x.c uart0-putchar.c uip-ipchksum.c \
|
||||||
checkpoint-arch.c slip.c slip_uart0.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
|
CONTIKI_TARGET_DIRS = . dev apps net
|
||||||
ifndef CONTIKI_TARGET_MAIN
|
ifndef CONTIKI_TARGET_MAIN
|
||||||
|
Loading…
Reference in New Issue
Block a user