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:
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
|
||||
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:
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user