Statistics
| Branch: | Tag: | Revision:

mongoose / examples / nRF52 / http / rtt / RTT / SEGGER_RTT_Conf.h @ eaef5bd1

History | View | Annotate | Download (3.04 KB)

1
/* clang-format off */
2
/*********************************************************************
3
*              SEGGER MICROCONTROLLER SYSTEME GmbH                   *
4
*        Solutions for real time microcontroller applications        *
5
**********************************************************************
6
*                                                                    *
7
*        (c) 1996-2014 SEGGER Microcontroller Systeme GmbH           *
8
*                                                                    *
9
* Internet: www.segger.com Support: support@segger.com               *
10
*                                                                    *
11
**********************************************************************
12
----------------------------------------------------------------------
13
File    : SEGGER_RTT_Conf.h
14
Date    : 17 Dec 2014
15
Purpose : Implementation of SEGGER real-time terminal which allows
16
          real-time terminal communication on targets which support
17
          debugger memory accesses while the CPU is running.
18
---------------------------END-OF-HEADER------------------------------
19
*/
20

    
21
/*********************************************************************
22
*
23
*       Defines, configurable
24
*
25
**********************************************************************
26
*/
27

    
28
#define SEGGER_RTT_MAX_NUM_UP_BUFFERS             (2)     // Max. number of up-buffers (T->H) available on this target    (Default: 2)
29
#define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS           (2)     // Max. number of down-buffers (H->T) available on this target  (Default: 2)
30

    
31
#define BUFFER_SIZE_UP                            (2048)  // Size of the buffer for terminal output of target, up to host (Default: 1k)
32
#define BUFFER_SIZE_DOWN                          (16)    // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
33

    
34
#define SEGGER_RTT_PRINTF_BUFFER_SIZE             (64)    // Size of buffer for RTT printf to bulk-send chars via RTT     (Default: 64)
35

    
36
//
37
// Target is not allowed to perform other RTT operations while string still has not been stored completely.
38
// Otherwise we would probably end up with a mixed string in the buffer.
39
// If using  RTT from within interrupts, multiple tasks or multi processors, define the SEGGER_RTT_LOCK() and SEGGER_RTT_UNLOCK() function here.
40
//
41
#define SEGGER_RTT_LOCK()
42
#define SEGGER_RTT_UNLOCK()
43

    
44
//
45
// Define SEGGER_RTT_IN_RAM as 1
46
// when using RTT in RAM targets (init and data section both in RAM).
47
// This prevents the host to falsly identify the RTT Callback Structure
48
// in the init segment as the used Callback Structure.
49
//
50
// When defined as 1,
51
// the first call to an RTT function will modify the ID of the RTT Callback Structure.
52
// To speed up identifying on the host,
53
// especially when RTT functions are not called at the beginning of execution,
54
// SEGGER_RTT_Init() should be called at the start of the application.
55
//
56
#define SEGGER_RTT_IN_RAM                         (0)
57

    
58
/*************************** End of file ****************************/