2020-03-18 13:31:01 +01:00
|
|
|
STDIO_MODULES = \
|
|
|
|
slipdev_stdio \
|
|
|
|
stdio_cdc_acm \
|
|
|
|
stdio_ethos \
|
|
|
|
stdio_null \
|
|
|
|
stdio_rtt \
|
2020-02-09 12:52:20 +01:00
|
|
|
stdio_semihosting \
|
2020-03-18 13:31:01 +01:00
|
|
|
stdio_uart \
|
|
|
|
#
|
|
|
|
|
2019-09-25 22:13:08 +02:00
|
|
|
ifneq (,$(filter newlib picolibc,$(USEMODULE)))
|
2020-03-18 13:31:01 +01:00
|
|
|
ifeq (,$(filter $(STDIO_MODULES),$(USEMODULE)))
|
|
|
|
USEMODULE += stdio_uart
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stdio_cdc_acm,$(USEMODULE)))
|
|
|
|
USEMODULE += usbus_cdc_acm
|
|
|
|
USEMODULE += isrpipe
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stdio_rtt,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stdio_ethos,$(USEMODULE)))
|
|
|
|
USEMODULE += ethos
|
|
|
|
USEMODULE += stdin
|
|
|
|
USEMODULE += stdio_uart
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stdin,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter stdio_uart,$(USEMODULE)))
|
|
|
|
USEMODULE += stdio_uart_rx
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stdio_uart_rx,$(USEMODULE)))
|
|
|
|
USEMODULE += isrpipe
|
|
|
|
USEMODULE += stdio_uart
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stdio_uart,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
endif
|
|
|
|
|
2020-02-09 12:52:20 +01:00
|
|
|
ifneq (,$(filter stdio_semihosting,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2020-09-09 11:32:30 +02:00
|
|
|
FEATURES_REQUIRED_ANY += cpu_core_cortexm|arch_riscv
|
2020-02-09 12:52:20 +01:00
|
|
|
endif
|
2020-09-01 12:04:26 +02:00
|
|
|
|
|
|
|
# enable stdout buffering for modules that benefit from sending out buffers in larger chunks
|
|
|
|
ifneq (,$(filter picolibc,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter stdio_cdc_acm stdio_ethos slipdev_stdio stdio_semihosting,$(USEMODULE)))
|
|
|
|
USEMODULE += picolibc_stdout_buffered
|
|
|
|
endif
|
|
|
|
endif
|