2020-09-04 16:13:22 +02:00
|
|
|
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_% slipdev_stdio,$(USEMODULE))))
|
2024-02-12 19:55:40 +01:00
|
|
|
ifneq (,$(filter tinyusb_device,$(USEMODULE))$(filter tinyusb,$(USEPKG)))
|
2022-11-30 18:00:36 +01:00
|
|
|
# Use stdio_tinyusb_cdc_acm only if no other stdio is requested explicitly
|
|
|
|
# and tinyusb_device is used for any other reason
|
|
|
|
USEMODULE += stdio_tinyusb_cdc_acm
|
|
|
|
else
|
|
|
|
# Use stdio_cdc_acm only if no other stdio is requested explicitly.
|
|
|
|
USEMODULE += stdio_cdc_acm
|
|
|
|
endif
|
2020-09-04 16:13:22 +02:00
|
|
|
FEATURES_REQUIRED += highlevel_stdio
|
2023-01-11 12:54:54 +01:00
|
|
|
|
|
|
|
# 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)
|
2020-09-04 16:13:22 +02:00
|
|
|
endif
|