Statistics
| Branch: | Tag: | Revision:

mongoose / examples / nRF51 / http / sdk_config.h @ eaef5bd1

History | View | Annotate | Download (7.09 KB)

1
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2
 *
3
 * The information contained herein is property of Nordic Semiconductor ASA.
4
 * Terms and conditions of usage are described in detail in NORDIC
5
 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6
 *
7
 * Licensees are granted free, non-transferable use of the information. NO
8
 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9
 * the file.
10
 *
11
 */
12

    
13
/* clang-format off */
14

    
15
#ifndef SDK_CONFIG_H__
16
#define SDK_CONFIG_H__
17

    
18
/**
19
 * @defgroup sdk_config SDK Configuration
20
 * @{
21
 * @ingroup sdk_common
22
 * @{
23
 * @details All parameters that allow configuring/tuning the SDK based on application/ use case
24
 *          are defined here.
25
 */
26

    
27

    
28
/**
29
 * @defgroup mem_manager_config Memory Manager Configuration
30
 * @{
31
 * @addtogroup sdk_config
32
 * @{
33
 * @details This section defines configuration of memory manager module.
34
 */
35

    
36
/**
37
 * @brief Maximum memory blocks identified as 'small' blocks.
38
 *
39
 * @details Maximum memory blocks identified as 'small' blocks.
40
 *          Minimum value : 0 (Setting to 0 disables all 'small' blocks)
41
 *          Maximum value : 255
42
 *          Dependencies  : None.
43
 */
44
#define  MEMORY_MANAGER_SMALL_BLOCK_COUNT                  8
45

    
46
/**
47
 * @brief Size of each memory blocks identified as 'small' block.
48
 *
49
 * @details Size of each memory blocks identified as 'small' block.
50
 *          Memory block are recommended to be word-sized.
51
 *          Minimum value : 32
52
 *          Maximum value : A value less than the next pool size. If only small pool is used, this
53
 *                          can be any value based on availability of RAM.
54
 *          Dependencies  : MEMORY_MANAGER_SMALL_BLOCK_COUNT is non-zero.
55
 */
56
#define  MEMORY_MANAGER_SMALL_BLOCK_SIZE                   128
57

    
58
/**
59
 * @brief Maximum memory blocks identified as 'medium' blocks.
60
 *
61
 * @details Maximum memory blocks identified as 'medium' blocks.
62
 *          Minimum value : 0 (Setting to 0 disables all 'medium' blocks)
63
 *          Maximum value : 255
64
 *          Dependencies  : None.
65
 */
66
#define  MEMORY_MANAGER_MEDIUM_BLOCK_COUNT                 4
67

    
68
/**
69
 * @brief Size of each memory blocks identified as 'medium' block.
70
 *
71
 * @details Size of each memory blocks identified as 'medium' block.
72
 *          Memory block are recommended to be word-sized.
73
 *          Minimum value : A value greater than the small pool size if defined, else 32.
74
 *          Maximum value : A value less than the next pool size. If only medium pool is used, this
75
 *                          can be any value based on availability of RAM.
76
 *          Dependencies  : MEMORY_MANAGER_MEDIUM_BLOCK_COUNT is non-zero.
77
 */
78
#define  MEMORY_MANAGER_MEDIUM_BLOCK_SIZE                  256
79

    
80
/**
81
 * @brief Maximum memory blocks identified as 'medium' blocks.
82
 *
83
 * @details Maximum memory blocks identified as 'medium' blocks.
84
 *          Minimum value : 0 (Setting to 0 disables all 'large' blocks)
85
 *          Maximum value : 255
86
 *          Dependencies  : None.
87
 */
88
#define  MEMORY_MANAGER_LARGE_BLOCK_COUNT                  3
89

    
90
/**
91
 * @brief Size of each memory blocks identified as 'medium' block.
92
 *
93
 * @details Size of each memory blocks identified as 'medium' block.
94
 *          Memory block are recommended to be word-sized.
95
 *          Minimum value : A value greater than the small &/ medium pool size if defined, else 32.
96
 *          Maximum value : Any value based on availability of RAM.
97
 *          Dependencies  : MEMORY_MANAGER_MEDIUM_BLOCK_COUNT is non-zero.
98
 */
99
#define  MEMORY_MANAGER_LARGE_BLOCK_SIZE                   1024
100

    
101
/**
102
 * @brief Disable debug trace in the module.
103
 *
104
 * @details Set this define to 1 to enable debug trace in the module, else set to 0.
105
 *          Possible values : 0 or 1.
106
 *          Dependencies    : ENABLE_DEBUG_LOG_SUPPORT. If this flag is not defined, no
107
 *                            trace is observed even if this define is set to 1.
108
 */
109
#define MEM_MANAGER_DISABLE_LOGS                           1
110

    
111
/**
112
 * @brief Disables API parameter checks in the module.
113
 *
114
 * @details Set this define to 1 to disable checks on API parameters in the module.
115
 *          API parameter checks are added to ensure right parameters are passed to the
116
 *          module. These checks are useful during development phase but be redundant
117
 *          once application is developed. Disabling this can result in some code saving.
118
 *          Possible values : 0 or 1.
119
 *          Dependencies    : None.
120
 */
121
#define MEM_MANAGER_DISABLE_API_PARAM_CHECK                0
122
/** @} */
123
/** @} */
124

    
125

    
126
/**
127
 * @defgroup iot_context_manager Context Manager Configurations.
128
 * @{
129
 * @addtogroup iot_config
130
 * @{
131
 * @details This section defines configuration of Context Manager.
132
 */
133

    
134
/**
135
 * @brief Disable debug trace in the module.
136
 *
137
 * @details Set this define to 1 to enable debug trace in the module, else set to 0.
138
 *          Possible values : 0 or 1.
139
 *          Dependencies    : ENABLE_DEBUG_LOG_SUPPORT. If this flag is not defined, no
140
 *                            trace is observed even if this define is set to 1.
141
 */
142
#define IOT_CONTEXT_MANAGER_DISABLE_LOGS                    1
143

    
144
/**
145
 * @brief Disables API parameter checks in the module.
146
 *
147
 * @details Set this define to 1 to disable checks on API parameters in the module.
148
 *          API parameter checks are added to ensure right parameters are passed to the
149
 *          module. These checks are useful during development phase but be redundant
150
 *          once application is developed. Disabling this can result in some code saving.
151
 *          Possible values : 0 or 1.
152
 *          Dependencies    : None.
153
 */
154
#define IOT_CONTEXT_MANAGER_DISABLE_API_PARAM_CHECK        0
155

    
156
/**
157
 * @brief Maximum number of supported context identifiers.
158
 *
159
 * @details Maximum value of 16 is preferable to correct decompression.
160
 *          Minimum value : 1
161
 *          Maximum value : 16
162
 *          Dependencies  : None.
163
 */
164
#define  IOT_CONTEXT_MANAGER_MAX_CONTEXTS                  16
165

    
166
/**
167
 * @brief Maximum number of supported context's table.
168
 *
169
 * @details If value is equal to BLE_IPSP_MAX_CHANNELS then all interface will have
170
 *          its own table which is preferable.
171
 *          Minimum value : 1
172
 *          Maximum value : BLE_IPSP_MAX_CHANNELS
173
 *          Dependencies  : None.
174
 */
175
#define  IOT_CONTEXT_MANAGER_MAX_TABLES                    1
176
/** @} */
177
/** @} */
178

    
179

    
180
/**
181
 * @defgroup lwip_nrf51_driver nRF51 lwIP driver
182
 * @{
183
 * @addtogroup iot_config
184
 * @{
185
 * @details This section defines configuration of nRF51 lwIP driver.
186
 */
187
 
188
/**
189
 * @brief Disable debug trace in the module.
190
 *
191
 * @details Set this define to 1 to enable debug trace in the module, else set to 0.
192
 *          Possible values : 0 or 1.
193
 *          Dependencies    : ENABLE_DEBUG_LOG_SUPPORT. If this flag is not defined, no
194
 *                            trace is observed even if this define is set to 1.
195
 */
196
#define NRF51_LWIP_DRIVER_DISABLE_LOGS                     1
197

    
198
/** @} */
199
/** @} */
200

    
201
/** @} */
202
/** @} */
203

    
204
#endif // SDK_CONFIG_H__