1# Copyright (c) 2017 Linaro Limited
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig CONSOLE_SUBSYS
5	bool "Console subsystem/support routines"
6	help
7	  Console subsystem and helper functions
8
9if CONSOLE_SUBSYS
10
11choice
12	prompt "Console 'get' function selection"
13	optional
14	depends on UART_CONSOLE && SERIAL_SUPPORT_INTERRUPT
15
16config CONSOLE_GETCHAR
17	bool "Character by character input and output"
18	select UART_CONSOLE_DEBUG_SERVER_HOOKS
19	select CONSOLE_HANDLER
20
21config CONSOLE_GETLINE
22	bool "Line by line input"
23	select CONSOLE_HANDLER
24
25endchoice
26
27if CONSOLE_GETCHAR
28
29config CONSOLE_GETCHAR_BUFSIZE
30	int "console_getchar() buffer size"
31	default 16
32	help
33	  Buffer size for console_getchar(). The default is optimized
34	  to save RAM. You may need to increase it e.g. to support
35	  large host-side clipboard pastes. Set to 0 to disable
36	  interrupt-driven operation and use busy-polling.
37
38config CONSOLE_PUTCHAR_BUFSIZE
39	int "console_putchar() buffer size"
40	default 16
41	help
42	  Buffer size for console_putchar().  The default is optimized
43	  to save RAM. You may need to increase it e.g. to support
44	  large host-side clipboard pastes. Set to 0 to disable
45	  interrupt-driven operation and use busy-polling.
46
47endif # CONSOLE_GETCHAR
48
49endif # CONSOLE_SUBSYS
50