From 8ae5031aa5320c9f72e9a03f0c1f8e721cd25395 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 5 Dec 2023 22:24:30 +0000 Subject: [PATCH] samples: Add an SWO logger configuration fragment The subsys/logging/logger example can be used to demonstrate how to use SWO for logging. Add a configuration fragment that enables the logger's SWO backend. The default SWO frequency in this example is set to 2 MHz to ensure a well-defined output bit rate instead of the highest possible. Signed-off-by: Andreas Sandberg --- samples/subsys/logging/logger/arm_itm_swo.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 samples/subsys/logging/logger/arm_itm_swo.conf diff --git a/samples/subsys/logging/logger/arm_itm_swo.conf b/samples/subsys/logging/logger/arm_itm_swo.conf new file mode 100644 index 00000000000..0b3d792e707 --- /dev/null +++ b/samples/subsys/logging/logger/arm_itm_swo.conf @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_LOG_BACKEND_SWO=y +CONFIG_LOG_BACKEND_SWO_FREQ_HZ=2000000