Skip to content

Commit

Permalink
boards/common/stdio_tinyusb_cdc_acm: let tests wait for serial port
Browse files Browse the repository at this point in the history
After a reset, it can take several seconds before the CDC ACM interface becomes available as serial device `ttyACMx`. This was a change that was already made for `stdio_cdc_acm` in #19128.
  • Loading branch information
gschorcht committed Feb 6, 2023
1 parent e3b1c81 commit 90dc95e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boards/common/makefiles/stdio_tinyusb_cdc_acm.dep.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ ifeq (,$(filter stdio_% slipdev_stdio,$(USEMODULE)))
endif

FEATURES_REQUIRED += highlevel_stdio

# Enforce tests to wait a bit for the serial port after reset
TERM_DELAY ?= 2
TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY)
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
endif

0 comments on commit 90dc95e

Please sign in to comment.