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