mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
32 lines
1.0 KiB
Makefile
32 lines
1.0 KiB
Makefile
CONTIKI_TARGET_DIRS = . dev apps net loader ../../apps/codeprop
|
|
CONTIKI_CORE=contiki-stk501-main
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += rs232.c slip.c cfs-eeprom.c eeprom.c random.c \
|
|
mmem.c contiki-stk501-default-init-lowlevel.c \
|
|
contiki-stk501-default-init-net.c contiki-stk501-main.c
|
|
|
|
#elfloader-avr.c has 16/32 bit pointer problems and won't compile properly for this platform
|
|
#CONTIKI_TARGET_SOURCEFILES += codeprop.c elfloader-avr.c
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
CONTIKIBOARD=.
|
|
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=16000000UL -DAUTO_CRC_PADDING=2
|
|
|
|
MCU=atmega128
|
|
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:00A0000010EB
|
|
|
|
# Additional avrdude options
|
|
# Verify off
|
|
AVRDUDE_OPTIONS=-V
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|