Skip to content

Commit

Permalink
Merge pull request #12043 from jcarrano/dont-use-tlsf
Browse files Browse the repository at this point in the history
pkg/ccn-lite: remove dependency on tlsf-malloc.
  • Loading branch information
cgundogan committed Aug 21, 2019
2 parents 8f7009e + 5dc46eb commit 83e092e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions examples/ccn-lite-relay/main.c
Expand Up @@ -20,7 +20,6 @@

#include <stdio.h>

#include "tlsf-malloc.h"
#include "msg.h"
#include "shell.h"
#include "ccn-lite-riot.h"
Expand All @@ -31,13 +30,8 @@
#define MAIN_QUEUE_SIZE (8)
static msg_t _main_msg_queue[MAIN_QUEUE_SIZE];

/* 10kB buffer for the heap should be enough for everyone */
#define TLSF_BUFFER (10240 / sizeof(uint32_t))
static uint32_t _tlsf_heap[TLSF_BUFFER];

int main(void)
{
tlsf_add_global_pool(_tlsf_heap, sizeof(_tlsf_heap));
msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE);

puts("Basic CCN-Lite example");
Expand Down
1 change: 0 additions & 1 deletion pkg/ccn-lite/Makefile.dep
Expand Up @@ -3,6 +3,5 @@ ifneq (,$(filter ccn-lite,$(USEPKG)))
USEMODULE += evtimer
USEMODULE += random
USEMODULE += timex
USEMODULE += tlsf-malloc
USEMODULE += posix_headers
endif

0 comments on commit 83e092e

Please sign in to comment.