2019-01-24 14:30:57 +01:00
|
|
|
BOARDS_COMMON_MSBA2_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
|
|
|
# Compile `lpc2k_pgm` when required
|
|
|
|
# It is still compiling in `boards` as it was the case before introducing the
|
|
|
|
# rule to autobuild
|
|
|
|
MSBA2_TOOLS = $(BOARDS_COMMON_MSBA2_DIR)/tools
|
|
|
|
LPC2K_PGM = $(MSBA2_TOOLS)/bin/lpc2k_pgm
|
|
|
|
$(LPC2K_PGM): FORCE
|
|
|
|
env -i PATH=$(PATH) make -C $(MSBA2_TOOLS)
|
|
|
|
FLASHDEPS += $(if $(findstring $(LPC2K_PGM),$(FLASHER)),$(LPC2K_PGM))
|
|
|
|
|
|
|
|
FLASHER ?= $(LPC2K_PGM)
|
2017-05-18 15:46:38 +02:00
|
|
|
|
|
|
|
# configure serial interface
|
2018-11-22 14:12:38 +01:00
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
# This does not make a lot of sense, but it has the same value as the previous code
|
|
|
|
PORT_DARWIN ?= /dev/tty.usbserial-ARM
|
|
|
|
|
2019-08-27 12:12:16 +02:00
|
|
|
PYTERMFLAGS += -tg
|
2017-05-18 15:46:38 +02:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2013-03-13 16:52:00 +01:00
|
|
|
|
2018-12-19 19:37:38 +01:00
|
|
|
FLASHFILE ?= $(HEXFILE)
|
|
|
|
FFLAGS = $(PORT) $(FLASHFILE)
|
2013-06-12 16:27:17 +02:00
|
|
|
|
2017-11-16 12:15:04 +01:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/msba2/include
|