40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
CONTIKI_TARGET_DIRS = . apps net loader
|
|
|
|
CONTIKI_CORE=contiki-raven-main
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-raven-main.c params.c
|
|
#The avr cpu makefile will also add these files if COFFEE_FILES is specified.
|
|
#CONTIKI_TARGET_SOURCEFILES += cfs-coffee.c cfs-coffee-arch.c
|
|
#Needed for slip
|
|
CONTIKI_TARGET_SOURCEFILES += button-sensor.c sensors.c slip_uart0.c slip.c
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
CONTIKIBOARD=.
|
|
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=8000000UL -DAUTO_CRC_PADDING=2
|
|
|
|
MCU=atmega1284p
|
|
|
|
# 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
|
|
AVRDUDE_PORT=usb
|
|
|
|
# Assume that the user has already configured AVRDUDE to use a specific programmer.
|
|
#AVRDUDE_PROGRAMMER?=jtag2
|
|
|
|
# Additional avrdude options
|
|
# Verify off
|
|
#AVRDUDE_OPTIONS=-V
|
|
|
|
AVRDUDE_MCU=m1284p
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|
|
include $(CONTIKIAVR)/radio/Makefile.radio
|
|
|
|
MODULES += core/net/ipv6 core/net/ipv4 core/net/ip core/net/mac core/net core/net/rime core/net/mac/sicslowmac \
|
|
core/net/llsec
|