Merge pull request #10678 from kb2ma/nanocoap/doc_config_group

net/nanocoap: allow user to configure macros
This commit is contained in:
Martine Lenders 2019-01-03 17:06:39 +01:00 committed by GitHub
commit f475f1cc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,19 +178,39 @@ extern "C" {
#define COAP_FORMAT_NONE (UINT16_MAX) #define COAP_FORMAT_NONE (UINT16_MAX)
/** /**
* @name Nanocoap specific maximum values * @defgroup net_nanocoap_conf Nanocoap compile configurations
* @ingroup net_nanocoap
* @ingroup config
* @{ * @{
*/ */
/** @brief Maximum number of Options in a message */
#ifndef NANOCOAP_NOPTS_MAX
#define NANOCOAP_NOPTS_MAX (16) #define NANOCOAP_NOPTS_MAX (16)
#define NANOCOAP_URI_MAX (64)
#define NANOCOAP_BLOCK_SIZE_EXP_MAX (6) /**< Maximum size for a blockwise
* transfer as power of 2 */
/** @} */
#ifdef MODULE_GCOAP
#define NANOCOAP_QS_MAX (64)
#endif #endif
/**
* @brief Maximum length of a resource path string read from or written to
* a message
*/
#ifndef NANOCOAP_URI_MAX
#define NANOCOAP_URI_MAX (64)
#endif
/**
* @brief Maximum size for a blockwise transfer as a power of 2
*/
#ifndef NANOCOAP_BLOCK_SIZE_EXP_MAX
#define NANOCOAP_BLOCK_SIZE_EXP_MAX (6)
#endif
#if defined(MODULE_GCOAP) || defined(DOXYGEN)
/** @brief Maximum length of a query string written to a message */
#ifndef NANOCOAP_QS_MAX
#define NANOCOAP_QS_MAX (64)
#endif
#endif
/** @} */
/** /**
* @name coap_opt_finish() flag parameter values * @name coap_opt_finish() flag parameter values
* *