You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
# include optional dependencies
i n c l u d e $( RIOTBOARD ) / a r d u i n o - a t m e g a - c o m m o n / M a k e f i l e . d e p
# define port used to flash the board
OS = $( shell uname)
i f e q ( $( OS ) , L i n u x )
PORT = $( PORT_LINUX)
e l s e i f e q ( $( OS ) , D a r w i n )
PORT ?= $( PORT_DARWIN)
e l s e
$(info CAUTION : No flash tool for your host system found !)
# TODO: fix for building under windows
e n d i f
export TERMPROG = $( RIOTBASE) /dist/tools/pyterm/pyterm
export TERMFLAGS ?= -b 9600 -p $( PORT)
export FLASHER = avrdude
export PORT
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