Blame view

RIOT/boards/arduino-atmega-common/Makefile.include 838 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  # include optional dependencies
  include $(RIOTBOARD)/arduino-atmega-common/Makefile.dep
  
  INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
  
  # refine serial port information
  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)
  
  export PROGRAMMER_FLAGS = -P $(PORT) -b $(PROGRAMMER_SPEED)
  
  export OFLAGS += -j .text -j .data -O ihex
  export FFLAGS += -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -D -U flash:w:bin/$(BOARD)/$(PROJECT)$(APPLICATION).hex