snippets: rtt console

Adds a snippet to enable RTT as console backend.

Signed-off-by: Helmut Lord <kellyhlord@gmail.com>
This commit is contained in:
Helmut Lord 2024-05-16 15:24:50 -04:00 committed by Anas Nashif
commit ddc1d8706e
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,21 @@
.. _snippet-rtt-console:
RTT Console Snippet (rtt-console)
#########################################
.. code-block:: console
west build -S rtt-console [...]
Overview
********
This snippet redirects serial console output to SEGGER RTT.
Requirements
************
Hardware support for:
- :kconfig:option:`CONFIG_HAS_SEGGER_RTT`
- :kconfig:option:`CONFIG_CONSOLE`

View file

@ -0,0 +1,3 @@
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n

View file

@ -0,0 +1,3 @@
name: rtt-console
append:
EXTRA_CONF_FILE: rtt-console.conf