mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/stdio: enable stdout buffering for CDC ACM, ethos, semihosting
CDC ACM, ethos, Semihosting and SLIP all benefit from sending data out in larger chunks and will benefit from stdout buffering. `stdio_rtt` does have an internal TX buffer, so we don't need to do any buffering on top. With plain UART there was a slight advantage *without* buffering when testing with `tests/periph_uart_nonblocking` (with the non-blocking feature disabled). Since the removal of the buffering saves us some RAM and ROM, disable it by default there. This will be different with DMA enabled UARTs.
This commit is contained in:
parent
ea27064d21
commit
c94860d8fc
@ -55,3 +55,10 @@ ifneq (,$(filter stdio_semihosting,$(USEMODULE)))
|
||||
USEMODULE += xtimer
|
||||
FEATURES_REQUIRED += cpu_core_cortexm
|
||||
endif
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user