mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
4a085270ea
This allows selecting the correct device when multiple boards are connected.
13 lines
348 B
Makefile
13 lines
348 B
Makefile
# the cpu to build for
|
|
export CPU ?= esp32
|
|
export CPU_MODEL ?= esp32
|
|
|
|
# configure the serial interface
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# reset tool configuration
|
|
RESET ?= esptool.py
|
|
RESET_FLAGS ?= --port $(PORT) --before default_reset run
|