Skip to content

Commit 2ffb951

Browse files
pfalconcarlescufi
authored andcommitted
console: Kconfig: Update for recent changes
Buffer sizes aren't required to be power of 2 for a while. Describe that by setting buffers sizes to 0, one can get non interrupt driven operation. Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent 0925411 commit 2ffb951

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

subsys/console/Kconfig

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@ config CONSOLE_GETCHAR_BUFSIZE
3333
int "console_getchar() buffer size"
3434
default 16
3535
help
36-
Buffer size for console_getchar(). Must be power of 2. The
37-
default is optimized to save RAM. You may need to increase
38-
it e.g. to support large host-side clipboard pastes.
36+
Buffer size for console_getchar(). The default is optimized
37+
to save RAM. You may need to increase it e.g. to support
38+
large host-side clipboard pastes. Set to 0 to disable
39+
interrupt-driven operation and use busy-polling.
3940

4041
config CONSOLE_PUTCHAR_BUFSIZE
4142
int "console_putchar() buffer size"
4243
default 16
4344
help
44-
Buffer size for console_putchar(). Must be power of 2. The
45-
default is optimized to save RAM. You may need to increase
46-
it e.g. to support large host-side clipboard pastes (with
47-
echo).
45+
Buffer size for console_putchar(). The default is optimized
46+
to save RAM. You may need to increase it e.g. to support
47+
large host-side clipboard pastes. Set to 0 to disable
48+
interrupt-driven operation and use busy-polling.
4849

4950
endif # CONSOLE_GETCHAR
5051

0 commit comments

Comments
 (0)