Skip to content

Commit a706461

Browse files
gmarullnashif
authored andcommitted
snippets: add serial-console
Add a new snippet to enable serial console. Even though most Zephyr boards enable this by default, the same is not true for many real boards, where enabling UART can increase power consumption. Having this snippet may become handy on such scenarios. We could also consider cleaning up upstream boards by just enabling this snippet by default. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 40a73ec commit a706461

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

snippets/serial-console/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _snippet-uart-console:
2+
3+
UART Console Snippet (uart-console)
4+
###################################
5+
6+
Overview
7+
********
8+
9+
This snippet enables console output the chosen UART in ``zephyr,console``.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_CONSOLE=y
2+
CONFIG_UART_CONSOLE=y
3+
CONFIG_SERIAL=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: serial-console
2+
append:
3+
EXTRA_CONF_FILE: serial-console.conf

0 commit comments

Comments
 (0)