Percepio Trace Recorder  v4.6.6
trcStreamPortConfig.h
1 /*
2  * Trace Recorder for Tracealyzer v4.6.6
3  * Copyright 2021 Percepio AB
4  * www.percepio.com
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  *
8  * The configuration for trace streaming ("stream ports").
9  */
10 
11 #ifndef TRC_STREAM_PORT_CONFIG_H
12 #define TRC_STREAM_PORT_CONFIG_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /* This define will determine whether to use the internal buffer or not.
19 If file writing creates additional trace events (i.e. it uses semaphores or mutexes),
20 then the internal buffer must be enabled to avoid infinite recursion. */
21 #define TRC_CFG_STREAM_PORT_USE_INTERNAL_BUFFER 0
22 
29 #define TRC_CFG_STREAM_PORT_INTERNAL_BUFFER_SIZE 5000
30 
46 #define TRC_CFG_STREAM_PORT_RTT_UP_BUFFER_SIZE 5000
47 
59 #define TRC_CFG_STREAM_PORT_RTT_DOWN_BUFFER_SIZE 32
60 
72 #define TRC_CFG_STREAM_PORT_RTT_UP_BUFFER_INDEX 1
73 
85 #define TRC_CFG_STREAM_PORT_RTT_DOWN_BUFFER_INDEX 1
86 
105 #define TRC_CFG_STREAM_PORT_RTT_MODE SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
106 
117 #define TRC_CFG_STREAM_PORT_RTT_NO_LOCK_WRITE 0
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* TRC_STREAM_PORT_CONFIG_H */