1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/makefiles/stdio_tinyusb_cdc_acm.dep.mk
Gunar Schorcht 90dc95eba1 boards/common/stdio_tinyusb_cdc_acm: let tests wait for serial port
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.
2023-02-06 16:19:11 +01:00

17 lines
536 B
Makefile

ifeq (,$(filter stdio_% slipdev_stdio,$(USEMODULE)))
# Use stdio_tinyusb_cdc_acm only if no other stdio is requested explicitly.
# and usbus is used for any other reason
ifneq (,$(filter usbus,$(USEMODULE)))
USEMODULE += stdio_cdc_acm
else
USEMODULE += stdio_tinyusb_cdc_acm
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