RTT Debugger Library

Dependents:   BREAK_SENSOR_LED MPU9250_simple MPU9250_tap_better Sensor_tap_BLE ... more

Committer:
Anythingconnected
Date:
Mon Dec 18 10:17:08 2017 +0000
Revision:
0:7dcd871d726b
1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anythingconnected 0:7dcd871d726b 1 /*********************************************************************
Anythingconnected 0:7dcd871d726b 2 * SEGGER MICROCONTROLLER SYSTEME GmbH *
Anythingconnected 0:7dcd871d726b 3 * Solutions for real time microcontroller applications *
Anythingconnected 0:7dcd871d726b 4 **********************************************************************
Anythingconnected 0:7dcd871d726b 5 * *
Anythingconnected 0:7dcd871d726b 6 * (c) 1996-2014 SEGGER Microcontroller Systeme GmbH *
Anythingconnected 0:7dcd871d726b 7 * *
Anythingconnected 0:7dcd871d726b 8 * Internet: www.segger.com Support: support@segger.com *
Anythingconnected 0:7dcd871d726b 9 * *
Anythingconnected 0:7dcd871d726b 10 **********************************************************************
Anythingconnected 0:7dcd871d726b 11 ----------------------------------------------------------------------
Anythingconnected 0:7dcd871d726b 12 File : SEGGER_RTT_Conf.h
Anythingconnected 0:7dcd871d726b 13 Date : 17 Dec 2014
Anythingconnected 0:7dcd871d726b 14 Purpose : Implementation of SEGGER real-time terminal which allows
Anythingconnected 0:7dcd871d726b 15 real-time terminal communication on targets which support
Anythingconnected 0:7dcd871d726b 16 debugger memory accesses while the CPU is running.
Anythingconnected 0:7dcd871d726b 17 ---------------------------END-OF-HEADER------------------------------
Anythingconnected 0:7dcd871d726b 18 */
Anythingconnected 0:7dcd871d726b 19
Anythingconnected 0:7dcd871d726b 20 /*********************************************************************
Anythingconnected 0:7dcd871d726b 21 *
Anythingconnected 0:7dcd871d726b 22 * Defines, configurable
Anythingconnected 0:7dcd871d726b 23 *
Anythingconnected 0:7dcd871d726b 24 **********************************************************************
Anythingconnected 0:7dcd871d726b 25 */
Anythingconnected 0:7dcd871d726b 26
Anythingconnected 0:7dcd871d726b 27 #define SEGGER_RTT_MAX_NUM_UP_BUFFERS (2) // Max. number of up-buffers (T->H) available on this target (Default: 2)
Anythingconnected 0:7dcd871d726b 28 #define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (2) // Max. number of down-buffers (H->T) available on this target (Default: 2)
Anythingconnected 0:7dcd871d726b 29
Anythingconnected 0:7dcd871d726b 30 #define BUFFER_SIZE_UP (1024) // Size of the buffer for terminal output of target, up to host (Default: 1k)
Anythingconnected 0:7dcd871d726b 31 #define BUFFER_SIZE_DOWN (16) // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
Anythingconnected 0:7dcd871d726b 32
Anythingconnected 0:7dcd871d726b 33 #define SEGGER_RTT_PRINTF_BUFFER_SIZE (64) // Size of buffer for RTT printf to bulk-send chars via RTT (Default: 64)
Anythingconnected 0:7dcd871d726b 34
Anythingconnected 0:7dcd871d726b 35 //
Anythingconnected 0:7dcd871d726b 36 // Target is not allowed to perform other RTT operations while string still has not been stored completely.
Anythingconnected 0:7dcd871d726b 37 // Otherwise we would probably end up with a mixed string in the buffer.
Anythingconnected 0:7dcd871d726b 38 // If using RTT from within interrupts, multiple tasks or multi processors, define the SEGGER_RTT_LOCK() and SEGGER_RTT_UNLOCK() function here.
Anythingconnected 0:7dcd871d726b 39 //
Anythingconnected 0:7dcd871d726b 40 #define SEGGER_RTT_LOCK()
Anythingconnected 0:7dcd871d726b 41 #define SEGGER_RTT_UNLOCK()
Anythingconnected 0:7dcd871d726b 42
Anythingconnected 0:7dcd871d726b 43 //
Anythingconnected 0:7dcd871d726b 44 // Define SEGGER_RTT_IN_RAM as 1
Anythingconnected 0:7dcd871d726b 45 // when using RTT in RAM targets (init and data section both in RAM).
Anythingconnected 0:7dcd871d726b 46 // This prevents the host to falsly identify the RTT Callback Structure
Anythingconnected 0:7dcd871d726b 47 // in the init segment as the used Callback Structure.
Anythingconnected 0:7dcd871d726b 48 //
Anythingconnected 0:7dcd871d726b 49 // When defined as 1,
Anythingconnected 0:7dcd871d726b 50 // the first call to an RTT function will modify the ID of the RTT Callback Structure.
Anythingconnected 0:7dcd871d726b 51 // To speed up identifying on the host,
Anythingconnected 0:7dcd871d726b 52 // especially when RTT functions are not called at the beginning of execution,
Anythingconnected 0:7dcd871d726b 53 // SEGGER_RTT_Init() should be called at the start of the application.
Anythingconnected 0:7dcd871d726b 54 //
Anythingconnected 0:7dcd871d726b 55 #define SEGGER_RTT_IN_RAM (0)
Anythingconnected 0:7dcd871d726b 56
Anythingconnected 0:7dcd871d726b 57 /*************************** End of file ****************************/