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 <gerard@teslabs.com>
This commit is contained in:
parent
40a73ec96e
commit
a706461ea9
3 changed files with 15 additions and 0 deletions
9
snippets/serial-console/README.rst
Normal file
9
snippets/serial-console/README.rst
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
.. _snippet-uart-console:
|
||||||
|
|
||||||
|
UART Console Snippet (uart-console)
|
||||||
|
###################################
|
||||||
|
|
||||||
|
Overview
|
||||||
|
********
|
||||||
|
|
||||||
|
This snippet enables console output the chosen UART in ``zephyr,console``.
|
3
snippets/serial-console/serial-console.conf
Normal file
3
snippets/serial-console/serial-console.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
CONFIG_CONSOLE=y
|
||||||
|
CONFIG_UART_CONSOLE=y
|
||||||
|
CONFIG_SERIAL=y
|
3
snippets/serial-console/snippet.yml
Normal file
3
snippets/serial-console/snippet.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
name: serial-console
|
||||||
|
append:
|
||||||
|
EXTRA_CONF_FILE: serial-console.conf
|
Loading…
Add table
Add a link
Reference in a new issue