mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
72ddc72f2b
* Use the existing variable when possible * Remove duplicate definition * Remove unused BINFILE variable
25 lines
917 B
Makefile
25 lines
917 B
Makefile
# define the cpu used by the Mega Xplained board
|
|
export CPU = atmega1284p
|
|
|
|
# configure the terminal program
|
|
export PORT_LINUX ?= /dev/ttyACM0
|
|
export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
|
|
export BAUD ?= 9600
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
export FLASHER = avrdude
|
|
export DIST_PATH = $(RIOTBOARD)/$(BOARD)/dist
|
|
export DEBUGSERVER_PORT = 4242
|
|
export DEBUGSERVER = $(DIST_PATH)/debug_srv.sh
|
|
export DEBUGSERVER_FLAGS = "-g -j usb :$(DEBUGSERVER_PORT)"
|
|
export DEBUGGER_FLAGS = "-x $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)"
|
|
export DEBUGGER = $(DIST_PATH)/debug.sh $(DEBUGSERVER_FLAGS) $(DIST_PATH) $(DEBUGSERVER_PORT)
|
|
|
|
# PROGRAMMER defaults to the Bus Pirate ISP
|
|
export PROGRAMMER ?= buspirate
|
|
|
|
export PROGRAMMER_FLAGS = -P /dev/ttyUSB0
|
|
|
|
export OFLAGS += -j .text -j .data -O ihex
|
|
export FFLAGS += -p m1284p -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:$(HEXFILE)
|