Commit 82d229a1 authored by Pavel Kral's avatar Pavel Kral Committed by Carles Cufí
Browse files

ext: debug: segger: Add USE_SEGGER_RTT that enables RTT libraries.



This option allows to explicitly include Segger RTT libraries and
enables use of it for various subsystems. It is disabled by
default as it consumes more RAM.

Signed-off-by: default avatarPavel Kral <pavel.kral@omsquare.com>
parent 64322026
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line

zephyr_include_directories_ifdef(CONFIG_HAS_SEGGER_RTT .)
zephyr_sources_ifdef(CONFIG_HAS_SEGGER_RTT
zephyr_include_directories_ifdef(CONFIG_USE_SEGGER_RTT .)
zephyr_sources_ifdef(CONFIG_USE_SEGGER_RTT
	rtt/SEGGER_RTT.c
	rtt/SEGGER_RTT_zephyr.c
	)
+10 −1
Original line number Diff line number Diff line
@@ -7,7 +7,16 @@
config HAS_SEGGER_RTT
	bool

if HAS_SEGGER_RTT
config USE_SEGGER_RTT
    bool "Enable SEGGER RTT libraries."
    depends on HAS_SEGGER_RTT
    default n
    help
        Enable Segger J-Link RTT libraries for platforms that support it.
        Selection of this option enable use of RTT for various subsytems.
        Note that by enabling this option, RTT buffers consumes more RAM.

if USE_SEGGER_RTT

config SEGGER_SYSTEMVIEW
	bool "Segger SystemView support"