2009-09-08 10:59:29 +02:00
|
|
|
CONTIKI_TARGET_DIRS = . dev dev/sensors
|
|
|
|
CONTIKI_CORE=contiki-micaz
|
|
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
|
|
|
|
|
|
SENSOR_BOARD_SOURCEFILES = mts300.c
|
|
|
|
|
2010-02-24 10:09:35 +01:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += adc.c rs232.c cfs-eeprom.c contiki-micaz-main.c \
|
2010-09-20 20:22:28 +02:00
|
|
|
leds-arch.c cc2420.c init-net.c node-id.c \
|
2010-06-23 12:25:54 +02:00
|
|
|
clock.c spi.c cc2420-arch.c rtimer-arch.c ds2401.c \
|
2010-09-20 20:34:14 +02:00
|
|
|
battery-sensor.c slip_uart0.c
|
2009-09-08 10:59:29 +02:00
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(SENSOR_BOARD_SOURCEFILES)
|
|
|
|
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
|
|
CONTIKIBOARD=.
|
|
|
|
|
|
|
|
# MicaZ runs on Clock rate 7.3728 MHz
|
|
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=7372800UL -DAUTO_CRC_PADDING=2
|
|
|
|
|
|
|
|
MCU=atmega128
|
|
|
|
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|
|
|
|
|
|
|
|
|
|
|
|
%.od: %.$(TARGET)
|
|
|
|
avr-objdump -zhD $< > $@
|
|
|
|
|
|
|
|
|
|
|
|
ifndef WINDIR
|
|
|
|
ifdef OS
|
|
|
|
ifneq (,$(findstring Windows,$(OS)))
|
|
|
|
WINDIR := Windows
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PRGBOARD), )
|
|
|
|
PRGBOARD = mib510
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PORT), )
|
|
|
|
ifndef WINDIR
|
|
|
|
PORT = /dev/ttyS0
|
|
|
|
else
|
|
|
|
PORT = COM1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
PRGBOARD_FILE = $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.$(PRGBOARD)
|
|
|
|
HAVE_PRGBOARD_FILE = $(wildcard $(PRGBOARD_FILE))
|
|
|
|
|
|
|
|
ifneq ($(strip $(HAVE_PRGBOARD_FILE)), )
|
|
|
|
include $(PRGBOARD_FILE)
|
|
|
|
endif
|
|
|
|
|