You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Config/SEGGER_RTT_Conf.h
+10-20Lines changed: 10 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -78,33 +78,21 @@ Revision: $Rev: 21386 $
78
78
// Up-channel 0: RTT
79
79
// Up-channel 1: SystemView
80
80
//
81
-
#ifndefSEGGER_RTT_MAX_NUM_UP_BUFFERS
82
-
#defineSEGGER_RTT_MAX_NUM_UP_BUFFERS (3) // Max. number of up-buffers (T->H) available on this target (Default: 3)
83
-
#endif
81
+
#defineSEGGER_RTT_MAX_NUM_UP_BUFFERS CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS // Max. number of up-buffers (T->H) available on this target (Default: 3)
84
82
//
85
83
// Most common case:
86
84
// Down-channel 0: RTT
87
85
// Down-channel 1: SystemView
88
86
//
89
-
#ifndefSEGGER_RTT_MAX_NUM_DOWN_BUFFERS
90
-
#defineSEGGER_RTT_MAX_NUM_DOWN_BUFFERS (3) // Max. number of down-buffers (H->T) available on this target (Default: 3)
91
-
#endif
87
+
#defineSEGGER_RTT_MAX_NUM_DOWN_BUFFERS CONFIG_SEGGER_RTT_MAX_NUM_DOWN_BUFFERS // Max. number of down-buffers (H->T) available on this target (Default: 3)
92
88
93
-
#ifndefBUFFER_SIZE_UP
94
-
#defineBUFFER_SIZE_UP (1024) // Size of the buffer for terminal output of target, up to host (Default: 1k)
95
-
#endif
89
+
#defineBUFFER_SIZE_UP CONFIG_SEGGER_RTT_BUFFER_SIZE_UP // Size of the buffer for terminal output of target, up to host (Default: 1k)
96
90
97
-
#ifndefBUFFER_SIZE_DOWN
98
-
#defineBUFFER_SIZE_DOWN (16) // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
99
-
#endif
91
+
#defineBUFFER_SIZE_DOWN CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
100
92
101
-
#ifndefSEGGER_RTT_PRINTF_BUFFER_SIZE
102
-
#defineSEGGER_RTT_PRINTF_BUFFER_SIZE (64u) // Size of buffer for RTT printf to bulk-send chars via RTT (Default: 64)
103
-
#endif
93
+
#defineSEGGER_RTT_PRINTF_BUFFER_SIZE CONFIG_SEGGER_RTT_PRINTF_BUFFER_SIZE // Size of buffer for RTT printf to bulk-send chars via RTT (Default: 64)
104
94
105
-
#ifndefSEGGER_RTT_MODE_DEFAULT
106
-
#defineSEGGER_RTT_MODE_DEFAULT SEGGER_RTT_MODE_NO_BLOCK_SKIP // Mode for pre-initialized terminal channel (buffer 0)
107
-
#endif
95
+
#defineSEGGER_RTT_MODE_DEFAULT CONFIG_SEGGER_RTT_MODE // Mode for pre-initialized terminal channel (buffer 0)
108
96
109
97
#if defined(CONFIG_SEGGER_RTT_SECTION_DTCM)
110
98
#defineSEGGER_RTT_SECTION ".dtcm_data"
@@ -122,8 +110,10 @@ Revision: $Rev: 21386 $
122
110
* This is may be required with memory access restrictions,
123
111
* such as on Cortex-A devices with MMU.
124
112
*/
125
-
#ifndefSEGGER_RTT_MEMCPY_USE_BYTELOOP
126
-
#defineSEGGER_RTT_MEMCPY_USE_BYTELOOP 0 // 0: Use memcpy/SEGGER_RTT_MEMCPY, 1: Use a simple byte-loop
0 commit comments