2009-07-23 16:13:48 +00:00
|
|
|
CONTIKI_TARGET_DIRS = . apps net loader dev/usb dev/serial
|
2008-10-14 19:06:51 +00:00
|
|
|
CONTIKI_CORE=contiki-raven-main
|
|
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
|
|
|
|
|
|
#USB Ethernet Interface + USB Serial Port TX Only
|
|
|
|
USB = uart_usb_lib.c \
|
|
|
|
cdc_task.c \
|
|
|
|
rndis_task.c \
|
|
|
|
rndis.c \
|
2010-09-17 21:59:09 +00:00
|
|
|
cdc_eem.c \
|
|
|
|
cdc_ecm.c \
|
2008-10-14 19:06:51 +00:00
|
|
|
usb_descriptors.c \
|
|
|
|
usb_drv.c \
|
|
|
|
usb_specific_request.c \
|
|
|
|
usb_standard_request.c \
|
2010-09-17 21:59:09 +00:00
|
|
|
usb_task.c
|
|
|
|
|
|
|
|
#Files needed for USB Mass storage device enumeration
|
|
|
|
USB += scsi_decoder.c ctrl_access.c storage_task.c avr_flash.c
|
2008-10-14 19:06:51 +00:00
|
|
|
|
2010-09-14 17:03:29 +00:00
|
|
|
#As of September 2010 the following are needed for rpl. They need explicit inclusion if CONTIKI_NO_NET=1
|
|
|
|
#If CONTIKI_NO_NET=1 the tcpip_input routine in tcpip.c must be commented out; it expects a tcpip process and conflicts with the one in fakeuip.c
|
|
|
|
#RPL = rpl.c rpl-dag.c rpl-icmp6.c rpl-timers.c rpl-of-etx.c uip-ds6.c uip-icmp6.c uip-nd6.c uip6.c neighbor-info.c neighbor-attr.c tcpip.c uip-split.c psock.c
|
2010-08-03 19:55:42 +00:00
|
|
|
|
2008-10-14 19:06:51 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += cfs-eeprom.c eeprom.c random.c \
|
|
|
|
mmem.c contiki-raven-default-init-lowlevel.c \
|
2010-09-14 17:03:29 +00:00
|
|
|
contiki-raven-default-init-net.c contiki-raven-main.c httpd-simple-avr.c \
|
2010-09-17 21:59:09 +00:00
|
|
|
sicslow_ethernet.c queuebuf.c packetbuf.c rng.c \
|
2010-08-03 19:55:42 +00:00
|
|
|
$(RPL) \
|
2008-10-14 19:06:51 +00:00
|
|
|
$(USB)
|
|
|
|
|
|
|
|
USB_INCLUDES = -I$(CONTIKI_CPU)/dev/usb
|
|
|
|
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
|
|
CONTIKIBOARD=.
|
|
|
|
|
|
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=8000000UL -DAVRGCC -DAUTO_CRC_PADDING=2 -DJACKDAW=1
|
|
|
|
|
2010-11-13 16:28:46 +00:00
|
|
|
#The no-net build using fakeuip.c is always ipv6
|
|
|
|
ifdef CONTIKI_NO_NET
|
|
|
|
CONTIKI_PLAT_DEFS+= -DUIP_CONF_IPV6=1
|
|
|
|
endif
|
|
|
|
|
2008-10-14 19:06:51 +00:00
|
|
|
|
|
|
|
MCU=at90usb1287
|
|
|
|
AVRDUDE_PROGRAMMER=jtag2
|
|
|
|
|
2008-10-14 09:40:30 +00:00
|
|
|
# For usb devices, you may either use PORT=usb, or (e.g. if you have more than one
|
|
|
|
# programmer connected) you can use the following trick to find out the serial number:
|
|
|
|
#
|
|
|
|
# The example is for an JTAGICE mkII used to program an ATmega128:
|
|
|
|
# avrdude -v -P usb:xxxx -c jtag2 -p atmega128
|
|
|
|
AVRDUDE_PORT=usb:00B000000D79
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Additional avrdude options
|
|
|
|
# Verify off
|
|
|
|
AVRDUDE_OPTIONS=-V
|
|
|
|
|
|
|
|
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|
2009-09-07 12:06:33 +00:00
|
|
|
include $(CONTIKIAVR)/radio/Makefile.radio
|
2010-09-14 17:03:29 +00:00
|
|
|
|