2010-01-14 18:13:33 +00:00
|
|
|
SENSORS = sensors.c sht11.c
|
2007-06-28 12:49:57 +00:00
|
|
|
MSB = dma.c infomem.c node-id.c \
|
2008-02-28 15:49:01 +00:00
|
|
|
msb430-uart1.c rs232.c \
|
2010-03-04 14:16:30 +00:00
|
|
|
cc1020.c cc1020-uip.c adc.c \
|
2009-09-22 15:20:51 +00:00
|
|
|
msb430-slip-arch.c sd.c sd-arch.c \
|
|
|
|
cfs-coffee.c cfs-coffee-arch.c
|
2007-06-28 12:49:57 +00:00
|
|
|
|
2009-09-17 13:24:49 +00:00
|
|
|
CONTIKI_TARGET_DIRS = . dev apps loader
|
2007-06-28 12:49:57 +00:00
|
|
|
ifndef CONTIKI_TARGET_MAIN
|
|
|
|
CONTIKI_TARGET_MAIN = contiki-msb430-main.c
|
|
|
|
endif
|
|
|
|
|
2009-09-17 13:24:49 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(SENSORS) $(MSB) $(CONTIKI_TARGET_MAIN)
|
2007-06-28 12:49:57 +00:00
|
|
|
|
|
|
|
MCU=msp430x1612
|
|
|
|
include $(CONTIKI)/cpu/msp430/Makefile.msp430
|
|
|
|
|
|
|
|
contiki-$(TARGET).a: ${addprefix $(OBJECTDIR)/,symbols.o}
|
|
|
|
# $(AR) rcf $@ $^
|
|
|
|
|
|
|
|
ifndef BASE_IP
|
|
|
|
BASE_IP := 172.16.1.1
|
|
|
|
endif
|
|
|
|
|
|
|
|
### System dependent Makefile
|
|
|
|
|
|
|
|
ifndef WINDIR
|
|
|
|
ifdef OS
|
|
|
|
ifneq (,$(findstring Windows,$(OS)))
|
|
|
|
WINDIR := Windows
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (${HOSTTYPE},FreeBSD)
|
|
|
|
# settings for FreeBSD
|
|
|
|
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.freebsd
|
|
|
|
else
|
|
|
|
ifndef WINDIR
|
|
|
|
# settings for unix
|
|
|
|
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.unix
|
|
|
|
else
|
|
|
|
# settings for windows
|
|
|
|
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.win
|
|
|
|
endif
|
|
|
|
endif
|
2009-03-17 22:27:14 +00:00
|
|
|
|
|
|
|
# If we are not running under Windows, we assume Linux
|
|
|
|
ifndef MOTELIST
|
|
|
|
USBDEVPREFIX=
|
|
|
|
SERIALDUMP = $(CONTIKI)/tools/sky/serialdump-linux
|
|
|
|
MOTELIST = $(CONTIKI)/tools/sky/motelist-linux
|
|
|
|
MOTES = $(shell $(MOTELIST) 2>&- | grep USB | \
|
|
|
|
cut -f 4 -d \ | \
|
|
|
|
perl -ne 'print $$1 . " " if(m-(/dev/\w+)-);')
|
|
|
|
CMOTES=$(MOTES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
msb-motelist:
|
|
|
|
$(MOTELIST)
|
|
|
|
msb-motes:
|
|
|
|
@echo $(MOTES)
|
|
|
|
|
|
|
|
ifdef MOTE
|
|
|
|
serialdump:
|
|
|
|
$(SERIALDUMP) -b115200 $(USBDEVPREFIX)$(word $(MOTE), $(CMOTES)) | $(CONTIKI)/tools/timestamp | tee serialdump-`date +%Y%m%d-%H%M`
|
|
|
|
|
|
|
|
serialview:
|
|
|
|
$(SERIALDUMP) -b115200 $(USBDEVPREFIX)$(word $(MOTE), $(CMOTES)) | $(CONTIKI)/tools/timestamp
|
|
|
|
|
|
|
|
login:
|
|
|
|
$(SERIALDUMP) -b115200 $(USBDEVPREFIX)$(word $(MOTE), $(CMOTES))
|
|
|
|
else
|
|
|
|
serialdump:
|
|
|
|
$(SERIALDUMP) -b115200 $(USBDEVPREFIX)$(firstword $(CMOTES)) | $(CONTIKI)/tools/timestamp | tee serialdump-`date +%Y%m%d-%H%M`
|
|
|
|
|
|
|
|
serialview:
|
|
|
|
$(SERIALDUMP) -b115200 $(USBDEVPREFIX)$(firstword $(CMOTES)) | $(CONTIKI)/tools/timestamp
|
|
|
|
|
|
|
|
login:
|
|
|
|
$(SERIALDUMP) -b115200 $(USBDEVPREFIX)$(firstword $(CMOTES))
|
|
|
|
endif
|