mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-18 12:05:11 +00:00
27 lines
788 B
Makefile
27 lines
788 B
Makefile
|
CONTIKI_TARGET_DIRS = . dev apps net loader
|
||
|
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
|
||
|
|
||
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
||
|
CONTIKIBOARD=.
|
||
|
|
||
|
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
|