1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/wakaama: Move LWM2M_TLSF_BUFFER to 'CONFIG_' namespace

This commit is contained in:
Leandro Lanzieri 2020-02-13 16:32:56 +01:00
parent d6b4cde03e
commit a3f9b2b5b4
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
3 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ For debugging purposes there are two types of messages that can be enabled:
For memory allocation the TLSF package is being used, with a private heap. If
memory usage has to be tweaked the heap size can be modified via the macro
`LWM2M_TLSF_BUFFER`.
`CONFIG_LWM2M_TLSF_BUFFER`.
To compile run:

View File

@ -40,7 +40,7 @@
#include "lwm2m_platform.h"
#include "lwm2m_client_config.h"
static uint32_t _tlsf_heap[(LWM2M_TLSF_BUFFER / sizeof(uint32_t))];
static uint32_t _tlsf_heap[(CONFIG_LWM2M_TLSF_BUFFER / sizeof(uint32_t))];
static tlsf_t _tlsf;
typedef struct {

View File

@ -31,8 +31,8 @@ extern "C" {
* @{
*/
/** @brief Size of allocation buffer in bytes */
#ifndef LWM2M_TLSF_BUFFER
#define LWM2M_TLSF_BUFFER 5120
#ifndef CONFIG_LWM2M_TLSF_BUFFER
#define CONFIG_LWM2M_TLSF_BUFFER 5120
#endif
/** @} */