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 <andreas@sandberg.uk>
This commit is contained in:
parent
5767c8d78c
commit
8ae5031aa5
1 changed files with 4 additions and 0 deletions
4
samples/subsys/logging/logger/arm_itm_swo.conf
Normal file
4
samples/subsys/logging/logger/arm_itm_swo.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_LOG_BACKEND_SWO=y
|
||||
CONFIG_LOG_BACKEND_SWO_FREQ_HZ=2000000
|
Loading…
Add table
Add a link
Reference in a new issue