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: src/SEGGER_RTT.h
+18-18
Original file line number
Diff line number
Diff line change
@@ -302,25 +302,25 @@ Revision: $Rev: 24346 $
302
302
// which is used as up-buffer (T->H)
303
303
//
304
304
typedefstruct {
305
-
constchar*sName; // Optional name. Standard names so far are: "Terminal", "SysView", "J-Scope_t4i4"
306
-
char*pBuffer; // Pointer to start of buffer
307
-
unsignedSizeOfBuffer; // Buffer size in bytes. Note that one byte is lost, as this implementation does not fill up the buffer in order to avoid the problem of being unable to distinguish between full and empty.
308
-
unsignedWrOff; // Position of next item to be written by either target.
309
-
volatileunsignedRdOff; // Position of next item to be read by host. Must be volatile since it may be modified by host.
310
-
unsignedFlags; // Contains configuration flags
305
+
constchar*sName; // Optional name. Standard names so far are: "Terminal", "SysView", "J-Scope_t4i4"
306
+
char*pBuffer; // Pointer to start of buffer
307
+
unsignedSizeOfBuffer; // Buffer size in bytes. Note that one byte is lost, as this implementation does not fill up the buffer in order to avoid the problem of being unable to distinguish between full and empty.
308
+
unsignedWrOff; // Position of next item to be written by either target.
309
+
volatileunsignedRdOff; // Position of next item to be read by host. Must be volatile since it may be modified by host.
310
+
unsignedFlags; // Contains configuration flags
311
311
} SEGGER_RTT_BUFFER_UP;
312
312
313
313
//
314
314
// Description for a circular buffer (also called "ring buffer")
315
315
// which is used as down-buffer (H->T)
316
316
//
317
317
typedefstruct {
318
-
constchar*sName; // Optional name. Standard names so far are: "Terminal", "SysView", "J-Scope_t4i4"
319
-
char*pBuffer; // Pointer to start of buffer
320
-
unsignedSizeOfBuffer; // Buffer size in bytes. Note that one byte is lost, as this implementation does not fill up the buffer in order to avoid the problem of being unable to distinguish between full and empty.
321
-
volatileunsignedWrOff; // Position of next item to be written by host. Must be volatile since it may be modified by host.
322
-
unsignedRdOff; // Position of next item to be read by target (down-buffer).
323
-
unsignedFlags; // Contains configuration flags
318
+
constchar*sName; // Optional name. Standard names so far are: "Terminal", "SysView", "J-Scope_t4i4"
319
+
char*pBuffer; // Pointer to start of buffer
320
+
unsignedSizeOfBuffer; // Buffer size in bytes. Note that one byte is lost, as this implementation does not fill up the buffer in order to avoid the problem of being unable to distinguish between full and empty.
321
+
volatileunsignedWrOff; // Position of next item to be written by host. Must be volatile since it may be modified by host.
322
+
unsignedRdOff; // Position of next item to be read by target (down-buffer).
323
+
unsignedFlags; // Contains configuration flags
324
324
} SEGGER_RTT_BUFFER_DOWN;
325
325
326
326
//
@@ -329,13 +329,13 @@ typedef struct {
329
329
//
330
330
//
331
331
typedefstruct {
332
-
characID[16]; // Initialized to "SEGGER RTT"
333
-
intMaxNumUpBuffers; // Initialized to SEGGER_RTT_MAX_NUM_UP_BUFFERS (type. 2)
334
-
intMaxNumDownBuffers; // Initialized to SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (type. 2)
335
-
SEGGER_RTT_BUFFER_UPaUp[SEGGER_RTT_MAX_NUM_UP_BUFFERS]; // Up buffers, transferring information up from target via debug probe to host
336
-
SEGGER_RTT_BUFFER_DOWNaDown[SEGGER_RTT_MAX_NUM_DOWN_BUFFERS]; // Down buffers, transferring information down from host via debug probe to target
332
+
characID[16]; // Initialized to "SEGGER RTT"
333
+
intMaxNumUpBuffers; // Initialized to SEGGER_RTT_MAX_NUM_UP_BUFFERS (type. 2)
334
+
intMaxNumDownBuffers; // Initialized to SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (type. 2)
335
+
SEGGER_RTT_BUFFER_UPaUp[SEGGER_RTT_MAX_NUM_UP_BUFFERS]; // Up buffers, transferring information up from target via debug probe to host
336
+
SEGGER_RTT_BUFFER_DOWNaDown[SEGGER_RTT_MAX_NUM_DOWN_BUFFERS]; // Down buffers, transferring information down from host via debug probe to target
0 commit comments