2020-05-21 19:57:18 +02:00
|
|
|
include $(RIOTMAKE)/boards/sam0.inc.mk
|
2020-08-23 02:35:15 +02:00
|
|
|
|
|
|
|
TERMDELAYDEPS := $(filter reset flash flash-only, $(MAKECMDGOALS))
|
|
|
|
ifneq (,$(TERMDELAYDEPS))
|
|
|
|
# By default, add 2 seconds delay before opening terminal: this is required
|
|
|
|
# when opening the terminal right after flashing. In this case, the stdio
|
|
|
|
# over USB needs some time after reset before being ready.
|
|
|
|
TERM_DELAY ?= 2
|
|
|
|
TERMDEPS += term-delay
|
|
|
|
endif
|
|
|
|
|
|
|
|
TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY)
|
|
|
|
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
|
|
|
|
|
|
|
|
term-delay: $(TERMDELAYDEPS)
|
|
|
|
sleep $(TERM_DELAY)
|