2011-09-21 18:02:04 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-wismote-platform.c \
|
|
|
|
sht11.c sht11-sensor.c light-sensor.c battery-sensor.c \
|
|
|
|
button-sensor.c radio-sensor.c
|
|
|
|
|
|
|
|
#ARCH=spi.c ds2411.c xmem.c i2c.c node-id.c sensors.c cfs-coffee.c \
|
|
|
|
cc2520.c cc2520-arch.c cc2520-arch-sfd.c \
|
|
|
|
sky-sensors.c uip-ipchksum.c \
|
2013-11-26 21:47:11 +00:00
|
|
|
uart1.c slip_uart1.c uart1-putchar.c
|
2011-09-21 18:02:04 +00:00
|
|
|
|
2011-10-06 12:05:57 +00:00
|
|
|
ARCH=spi.c i2c.c node-id.c sensors.c cfs-coffee.c sht15.c \
|
2011-09-21 18:02:04 +00:00
|
|
|
cc2520.c cc2520-arch.c cc2520-arch-sfd.c \
|
|
|
|
sky-sensors.c uip-ipchksum.c \
|
2013-11-26 21:47:11 +00:00
|
|
|
uart1.c slip_uart1.c uart1-putchar.c
|
2011-09-21 18:02:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS = . dev apps net
|
|
|
|
ifndef CONTIKI_TARGET_MAIN
|
|
|
|
CONTIKI_TARGET_MAIN = contiki-wismote-main.c
|
|
|
|
endif
|
|
|
|
|
2012-05-17 15:27:50 +00:00
|
|
|
ifeq ($(UIP_CONF_IPV6),1)
|
2011-09-21 18:02:04 +00:00
|
|
|
CFLAGS += -DWITH_UIP6=1
|
|
|
|
endif
|
|
|
|
|
2013-08-10 17:20:26 +00:00
|
|
|
ifndef IAR
|
|
|
|
ifneq (,$(findstring 4.7.,$(shell msp430-gcc -dumpversion)))
|
|
|
|
TARGET_MEMORY_MODEL ?= medium
|
|
|
|
CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL)
|
|
|
|
CFLAGS += -ffunction-sections -fdata-sections -mcode-region=far
|
|
|
|
LDFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) -Wl,-gc-sections
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-09-21 18:02:04 +00:00
|
|
|
ifdef IAR
|
2011-09-22 11:03:49 +00:00
|
|
|
CFLAGS += -D__MSP430F5437__=1 -e --vla -Ohz --multiplier=32 --multiplier_location=4C0 --hw_workaround=CPU40 --core=430X --double=32
|
2011-09-21 18:02:04 +00:00
|
|
|
else
|
|
|
|
SMALL=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(ARCH) $(UIPDRIVERS)
|
|
|
|
|
2012-04-10 14:05:10 +00:00
|
|
|
MCU=msp430f5437
|
2011-09-21 18:02:04 +00:00
|
|
|
include $(CONTIKI)/cpu/msp430/Makefile.msp430
|
|
|
|
|
|
|
|
ifdef IAR
|
2012-09-19 20:49:19 +00:00
|
|
|
LDFLAGSNO += -xm "$(IAR_PATH)/lib/dlib/dl430xsfn.r43" -f "$(IAR_PATH)/config/lnk430f5437.xcl"
|
2012-03-07 22:03:15 +00:00
|
|
|
LDFLAGS += $(LDFLAGSNO) -Felf -yn
|
2011-09-21 18:02:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
contiki-$(TARGET).a: ${addprefix $(OBJECTDIR)/,symbols.o}
|
|
|
|
# $(AR) rcf $@ $^
|
|
|
|
|
|
|
|
%.hex: %.ihex
|
|
|
|
mv $< $@
|
|
|
|
|
|
|
|
%.upload: %.hex
|
|
|
|
msp430flasher -n msp430x5437 -e ERASE_MAIN -w $< -v -z [VCC]
|
|
|
|
|
|
|
|
%.upload-clean: %.hex
|
|
|
|
msp430flasher -n msp430x5437 -w $< -v -z [VCC]
|
2013-11-28 14:06:37 +00:00
|
|
|
|
|
|
|
MODULES += core/net/ipv6 core/net/ipv4 core/net/rime core/net/mac/contikimac \
|
|
|
|
dev/cc2520 dev/sht11
|