2020-07-27 17:40:05 +02:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
2020-08-17 16:55:30 +02:00
|
|
|
menu "Standard Input/Output (STDIO)"
|
2020-07-27 17:40:05 +02:00
|
|
|
depends on TEST_KCONFIG
|
|
|
|
|
2023-04-05 15:04:48 +02:00
|
|
|
config FORCE_USB_STDIO
|
|
|
|
bool "Force a USB based STDIO"
|
|
|
|
depends on HAS_PERIPH_USBDEV || HAS_TINYUSB_DEVICE
|
|
|
|
select KCONFIG_USB
|
|
|
|
select REQUIRES_USB_STDIO
|
|
|
|
help
|
|
|
|
To prevent a circular dependency, can force the USB modules to that
|
|
|
|
STDIO will select some sort of USB based STDIO backend.
|
|
|
|
|
2021-09-30 13:39:03 +02:00
|
|
|
choice STDIO_IMPLEMENTATION
|
2020-07-27 17:40:05 +02:00
|
|
|
bool "STDIO implementation"
|
2020-07-23 08:29:34 +02:00
|
|
|
default MODULE_STDIO_NATIVE if CPU_ARCH_NATIVE
|
2023-04-06 09:19:09 +02:00
|
|
|
default MODULE_STDIO_CDC_ACM if MODULE_USBUS && REQUIRES_USB_STDIO
|
|
|
|
default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE && REQUIRES_USB_STDIO
|
2020-08-31 09:57:28 +02:00
|
|
|
default MODULE_STDIO_UART
|
2020-07-27 17:40:05 +02:00
|
|
|
|
2021-11-30 14:40:17 +01:00
|
|
|
config MODULE_STDIO_RTT
|
|
|
|
bool "JLink RTT"
|
|
|
|
select MODULE_ZTIMER
|
|
|
|
select MODULE_ZTIMER_MSEC
|
2021-01-05 19:19:08 +01:00
|
|
|
|
2023-05-23 10:47:53 +02:00
|
|
|
config MODULE_STDIO_SEMIHOSTING
|
|
|
|
bool "ARM and RISC-V Semihosting"
|
|
|
|
depends on HAS_ARCH_ARM || HAS_ARCH_RISCV
|
|
|
|
select MODULE_ZTIMER
|
|
|
|
select MODULE_ZTIMER_MSEC
|
2023-06-17 15:12:31 +02:00
|
|
|
select USE_STDOUT_BUFFERED
|
2023-05-23 10:47:53 +02:00
|
|
|
|
2021-01-05 19:19:08 +01:00
|
|
|
config MODULE_SLIPDEV_STDIO
|
|
|
|
bool "SLIP network device"
|
|
|
|
depends on MODULE_SLIPDEV
|
2021-09-22 10:39:37 +02:00
|
|
|
select USE_STDOUT_BUFFERED
|
2021-01-05 19:19:08 +01:00
|
|
|
select MODULE_ISRPIPE
|
2020-07-27 17:40:05 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_STDIO_NULL
|
2020-07-27 17:40:05 +02:00
|
|
|
bool "Null"
|
|
|
|
help
|
|
|
|
Empty implementation.
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_STDIO_UART
|
2020-07-27 17:40:05 +02:00
|
|
|
bool "UART"
|
|
|
|
depends on HAS_PERIPH_UART
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_UART
|
2020-07-27 17:40:05 +02:00
|
|
|
|
2020-08-31 22:18:35 +02:00
|
|
|
config MODULE_STDIO_UART_ONLCR
|
|
|
|
bool "Emit DOS line endings for STDIO output via UART"
|
|
|
|
depends on MODULE_STDIO_UART
|
|
|
|
|
2020-07-23 08:29:34 +02:00
|
|
|
config MODULE_STDIO_NATIVE
|
|
|
|
bool "Native"
|
|
|
|
depends on CPU_ARCH_NATIVE
|
|
|
|
|
2022-03-02 11:14:15 +01:00
|
|
|
config MODULE_STDIO_ETHOS
|
|
|
|
bool "ETHOS"
|
|
|
|
depends on MODULE_ETHOS
|
|
|
|
select MODULE_STDIN
|
|
|
|
select MODULE_ETHOS_STDIO
|
|
|
|
select USE_STDOUT_BUFFERED
|
|
|
|
|
2020-07-27 17:40:05 +02:00
|
|
|
endchoice
|
|
|
|
|
2020-08-17 16:55:30 +02:00
|
|
|
config MODULE_STDIN
|
|
|
|
bool "Standard Input"
|
|
|
|
|
|
|
|
config MODULE_STDIO_UART_RX
|
|
|
|
bool
|
|
|
|
depends on MODULE_STDIO_UART
|
|
|
|
select MODULE_ISRPIPE
|
2021-12-25 13:09:45 +01:00
|
|
|
select MODULE_STDIO_AVAILABLE
|
2020-08-17 16:55:30 +02:00
|
|
|
default y if MODULE_STDIN
|
|
|
|
help
|
|
|
|
Reception when using UART-based STDIO needs to be enabled.
|
|
|
|
|
2022-12-29 00:35:41 +01:00
|
|
|
config MODULE_STDIO_USB_SERIAL_JTAG_RX
|
|
|
|
bool
|
|
|
|
depends on MODULE_STDIO_USB_SERIAL_JTAG
|
|
|
|
select MODULE_ISRPIPE
|
|
|
|
select MODULE_STDIO_AVAILABLE
|
|
|
|
default y if MODULE_STDIN
|
|
|
|
help
|
|
|
|
Reception when using ESP32 USB Serial/JTAG STDIO needs to be enabled.
|
|
|
|
|
2021-12-25 13:08:33 +01:00
|
|
|
config MODULE_STDIO_AVAILABLE
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that the implementation supports function stdio_available
|
|
|
|
|
2020-11-19 10:02:04 +01:00
|
|
|
config MODULE_PRINTF_FLOAT
|
|
|
|
bool "Float support in printf"
|
|
|
|
|
2021-09-22 10:39:37 +02:00
|
|
|
config USE_STDOUT_BUFFERED
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Select this to prefer buffered standard output if provided by the implementation.
|
|
|
|
|
2023-04-05 15:04:48 +02:00
|
|
|
config REQUIRES_USB_STDIO
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that the STDIO requires some USB implementation to be enabled.
|
|
|
|
|
2020-08-17 16:55:30 +02:00
|
|
|
endmenu # Standard Input/Output (STDIO)
|