Skip to content

Commit

Permalink
boards/adafruit-clue: use shared usb_board_reset.mk for flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed May 18, 2023
1 parent 19ce68d commit d2628e8
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions boards/adafruit-clue/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,5 @@ ifeq ($(PROGRAMMER),adafruit-nrfutil)
# The preinstalled bootloader must also be taken into account so
# ROM_OFFSET skips the space taken by such bootloader.
ROM_OFFSET = 0x26000

ifneq (,$(filter reset flash flash-only, $(MAKECMDGOALS)))
# 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
include $(RIOTMAKE)/tools/usb_board_reset.mk
endif

term-delay:
sleep $(TERM_DELAY)

TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY)
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)

0 comments on commit d2628e8

Please # to comment.