pkg/wakaama: Move LWM2M_TLSF_BUFFER to 'CONFIG_' namespace
This commit is contained in:
parent
d6b4cde03e
commit
a3f9b2b5b4
@ -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
|
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
|
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:
|
To compile run:
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
#include "lwm2m_platform.h"
|
#include "lwm2m_platform.h"
|
||||||
#include "lwm2m_client_config.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;
|
static tlsf_t _tlsf;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
@ -31,8 +31,8 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
/** @brief Size of allocation buffer in bytes */
|
/** @brief Size of allocation buffer in bytes */
|
||||||
#ifndef LWM2M_TLSF_BUFFER
|
#ifndef CONFIG_LWM2M_TLSF_BUFFER
|
||||||
#define LWM2M_TLSF_BUFFER 5120
|
#define CONFIG_LWM2M_TLSF_BUFFER 5120
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user