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 <andreas@sandberg.uk>
5 lines
103 B
Plaintext
5 lines
103 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
CONFIG_LOG_BACKEND_SWO=y
|
|
CONFIG_LOG_BACKEND_SWO_FREQ_HZ=2000000
|