2011-02-07 18:15:21 +00:00
|
|
|
CONTIKI_TARGET_DIRS = . apps net loader
|
|
|
|
|
|
|
|
CONTIKI_CORE=contiki-main
|
|
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
2011-08-31 15:47:17 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-main.c params.c
|
2011-03-11 20:08:55 +00:00
|
|
|
#Needed for slip
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += button-sensor.c sensors.c slip_uart0.c slip.c
|
2011-02-07 18:15:21 +00:00
|
|
|
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
|
|
CONTIKIBOARD=.
|
|
|
|
|
2016-01-16 11:45:21 +00:00
|
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=16000000UL -DAUTO_CRC_PADDING=2
|
2011-02-07 18:15:21 +00:00
|
|
|
|
|
|
|
MCU=atmega128rfa1
|
|
|
|
|
|
|
|
AVRDUDE_PROGRAMMER=jtag2
|
|
|
|
|
|
|
|
# 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
|
2013-02-16 23:35:31 +00:00
|
|
|
AVRDUDE_MCU=m128rfa1
|
2011-02-07 18:15:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|
|
|
|
include $(CONTIKIAVR)/radio/Makefile.radio
|
2016-01-16 11:45:21 +00:00
|
|
|
MODULES += core/net/mac core/net core/net/mac/sicslowmac core/net/mac/contikimac core/net/llsec
|