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
28 lines
792 B
Makefile
28 lines
792 B
Makefile
# define the cpu used by the Teensy3.1 & 3.2 board
|
|
CPU = kinetis
|
|
CPU_MODEL = mk20dx256vlh7
|
|
|
|
# custom flasher to use with the bootloader
|
|
TEENSY_LOADER = $(RIOTBASE)/dist/tools/teensy-loader-cli/teensy_loader
|
|
FLASHER = $(TEENSY_LOADER)
|
|
|
|
OFLAGS = -O ihex
|
|
|
|
FFLAGS ?= --mcu=mk20dx256 $(HEXFILE)
|
|
|
|
ifeq ($(TEENSY_LOADER),$(FLASHER))
|
|
FLASHDEPS += $(TEENSY_LOADER)
|
|
endif
|
|
|
|
# define the default port depending on the host OS
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial-*)))
|
|
|
|
$(TEENSY_LOADER):
|
|
@echo "[INFO] teensy_loader binary not found - building it from source now"
|
|
CC= CFLAGS= make -C $(RIOTBASE)/dist/tools/teensy-loader-cli
|
|
@echo "[INFO] teensy_loader binary successfully build!"
|
|
|
|
# setup serial terminal
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|