mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/yarm: delay terminal connection after flashing
This commit is contained in:
parent
21c69d6899
commit
1031da354f
@ -1 +1,16 @@
|
|||||||
include $(RIOTMAKE)/boards/sam0.inc.mk
|
include $(RIOTMAKE)/boards/sam0.inc.mk
|
||||||
|
|
||||||
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user