mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-19 20:18:11 +08:00
c04e3f80b9
PUBLISHED_FROM=6af3ed56802d2619f673c36059370440a0c06397
205 lines
7.1 KiB
C
205 lines
7.1 KiB
C
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
|
|
*
|
|
* The information contained herein is property of Nordic Semiconductor ASA.
|
|
* Terms and conditions of usage are described in detail in NORDIC
|
|
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
|
|
*
|
|
* Licensees are granted free, non-transferable use of the information. NO
|
|
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
|
|
* the file.
|
|
*
|
|
*/
|
|
|
|
/* clang-format off */
|
|
|
|
#ifndef SDK_CONFIG_H__
|
|
#define SDK_CONFIG_H__
|
|
|
|
/**
|
|
* @defgroup sdk_config SDK Configuration
|
|
* @{
|
|
* @ingroup sdk_common
|
|
* @{
|
|
* @details All parameters that allow configuring/tuning the SDK based on application/ use case
|
|
* are defined here.
|
|
*/
|
|
|
|
|
|
/**
|
|
* @defgroup mem_manager_config Memory Manager Configuration
|
|
* @{
|
|
* @addtogroup sdk_config
|
|
* @{
|
|
* @details This section defines configuration of memory manager module.
|
|
*/
|
|
|
|
/**
|
|
* @brief Maximum memory blocks identified as 'small' blocks.
|
|
*
|
|
* @details Maximum memory blocks identified as 'small' blocks.
|
|
* Minimum value : 0 (Setting to 0 disables all 'small' blocks)
|
|
* Maximum value : 255
|
|
* Dependencies : None.
|
|
*/
|
|
#define MEMORY_MANAGER_SMALL_BLOCK_COUNT 8
|
|
|
|
/**
|
|
* @brief Size of each memory blocks identified as 'small' block.
|
|
*
|
|
* @details Size of each memory blocks identified as 'small' block.
|
|
* Memory block are recommended to be word-sized.
|
|
* Minimum value : 32
|
|
* Maximum value : A value less than the next pool size. If only small pool is used, this
|
|
* can be any value based on availability of RAM.
|
|
* Dependencies : MEMORY_MANAGER_SMALL_BLOCK_COUNT is non-zero.
|
|
*/
|
|
#define MEMORY_MANAGER_SMALL_BLOCK_SIZE 128
|
|
|
|
/**
|
|
* @brief Maximum memory blocks identified as 'medium' blocks.
|
|
*
|
|
* @details Maximum memory blocks identified as 'medium' blocks.
|
|
* Minimum value : 0 (Setting to 0 disables all 'medium' blocks)
|
|
* Maximum value : 255
|
|
* Dependencies : None.
|
|
*/
|
|
#define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 4
|
|
|
|
/**
|
|
* @brief Size of each memory blocks identified as 'medium' block.
|
|
*
|
|
* @details Size of each memory blocks identified as 'medium' block.
|
|
* Memory block are recommended to be word-sized.
|
|
* Minimum value : A value greater than the small pool size if defined, else 32.
|
|
* Maximum value : A value less than the next pool size. If only medium pool is used, this
|
|
* can be any value based on availability of RAM.
|
|
* Dependencies : MEMORY_MANAGER_MEDIUM_BLOCK_COUNT is non-zero.
|
|
*/
|
|
#define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
|
|
|
|
/**
|
|
* @brief Maximum memory blocks identified as 'medium' blocks.
|
|
*
|
|
* @details Maximum memory blocks identified as 'medium' blocks.
|
|
* Minimum value : 0 (Setting to 0 disables all 'large' blocks)
|
|
* Maximum value : 255
|
|
* Dependencies : None.
|
|
*/
|
|
#define MEMORY_MANAGER_LARGE_BLOCK_COUNT 3
|
|
|
|
/**
|
|
* @brief Size of each memory blocks identified as 'medium' block.
|
|
*
|
|
* @details Size of each memory blocks identified as 'medium' block.
|
|
* Memory block are recommended to be word-sized.
|
|
* Minimum value : A value greater than the small &/ medium pool size if defined, else 32.
|
|
* Maximum value : Any value based on availability of RAM.
|
|
* Dependencies : MEMORY_MANAGER_MEDIUM_BLOCK_COUNT is non-zero.
|
|
*/
|
|
#define MEMORY_MANAGER_LARGE_BLOCK_SIZE 1024
|
|
|
|
/**
|
|
* @brief Disable debug trace in the module.
|
|
*
|
|
* @details Set this define to 1 to enable debug trace in the module, else set to 0.
|
|
* Possible values : 0 or 1.
|
|
* Dependencies : ENABLE_DEBUG_LOG_SUPPORT. If this flag is not defined, no
|
|
* trace is observed even if this define is set to 1.
|
|
*/
|
|
#define MEM_MANAGER_DISABLE_LOGS 1
|
|
|
|
/**
|
|
* @brief Disables API parameter checks in the module.
|
|
*
|
|
* @details Set this define to 1 to disable checks on API parameters in the module.
|
|
* API parameter checks are added to ensure right parameters are passed to the
|
|
* module. These checks are useful during development phase but be redundant
|
|
* once application is developed. Disabling this can result in some code saving.
|
|
* Possible values : 0 or 1.
|
|
* Dependencies : None.
|
|
*/
|
|
#define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
|
|
/** @} */
|
|
/** @} */
|
|
|
|
|
|
/**
|
|
* @defgroup iot_context_manager Context Manager Configurations.
|
|
* @{
|
|
* @addtogroup iot_config
|
|
* @{
|
|
* @details This section defines configuration of Context Manager.
|
|
*/
|
|
|
|
/**
|
|
* @brief Disable debug trace in the module.
|
|
*
|
|
* @details Set this define to 1 to enable debug trace in the module, else set to 0.
|
|
* Possible values : 0 or 1.
|
|
* Dependencies : ENABLE_DEBUG_LOG_SUPPORT. If this flag is not defined, no
|
|
* trace is observed even if this define is set to 1.
|
|
*/
|
|
#define IOT_CONTEXT_MANAGER_DISABLE_LOGS 1
|
|
|
|
/**
|
|
* @brief Disables API parameter checks in the module.
|
|
*
|
|
* @details Set this define to 1 to disable checks on API parameters in the module.
|
|
* API parameter checks are added to ensure right parameters are passed to the
|
|
* module. These checks are useful during development phase but be redundant
|
|
* once application is developed. Disabling this can result in some code saving.
|
|
* Possible values : 0 or 1.
|
|
* Dependencies : None.
|
|
*/
|
|
#define IOT_CONTEXT_MANAGER_DISABLE_API_PARAM_CHECK 0
|
|
|
|
/**
|
|
* @brief Maximum number of supported context identifiers.
|
|
*
|
|
* @details Maximum value of 16 is preferable to correct decompression.
|
|
* Minimum value : 1
|
|
* Maximum value : 16
|
|
* Dependencies : None.
|
|
*/
|
|
#define IOT_CONTEXT_MANAGER_MAX_CONTEXTS 16
|
|
|
|
/**
|
|
* @brief Maximum number of supported context's table.
|
|
*
|
|
* @details If value is equal to BLE_IPSP_MAX_CHANNELS then all interface will have
|
|
* its own table which is preferable.
|
|
* Minimum value : 1
|
|
* Maximum value : BLE_IPSP_MAX_CHANNELS
|
|
* Dependencies : None.
|
|
*/
|
|
#define IOT_CONTEXT_MANAGER_MAX_TABLES 1
|
|
/** @} */
|
|
/** @} */
|
|
|
|
|
|
/**
|
|
* @defgroup lwip_nrf51_driver nRF51 lwIP driver
|
|
* @{
|
|
* @addtogroup iot_config
|
|
* @{
|
|
* @details This section defines configuration of nRF51 lwIP driver.
|
|
*/
|
|
|
|
/**
|
|
* @brief Disable debug trace in the module.
|
|
*
|
|
* @details Set this define to 1 to enable debug trace in the module, else set to 0.
|
|
* Possible values : 0 or 1.
|
|
* Dependencies : ENABLE_DEBUG_LOG_SUPPORT. If this flag is not defined, no
|
|
* trace is observed even if this define is set to 1.
|
|
*/
|
|
#define NRF51_LWIP_DRIVER_DISABLE_LOGS 1
|
|
|
|
/** @} */
|
|
/** @} */
|
|
|
|
/** @} */
|
|
/** @} */
|
|
|
|
#endif // SDK_CONFIG_H__
|