mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
heap: Fix compilation errors when CONFIG_HEAP_TLSF_USE_ROM_IMPL is set
- include headers from the tlsf submodule only when CONFIG_HEAP_TLSF_USE_ROM_IMPL is not set - remove usage of the tlsf_t type in the multi_heap.c - add missing declaration of tlsf_poison_fill_pfunc_set() in multi_heap_poisoning.c - define headers from tlsf submodule as private - update the linker file in the heap component to the new naming of the tlsf file - update the copyright docuementation to reference the submodule in github (https://github.com/espressif/tlsf) - remove deleted files from the check_copyright_ignore.txt
This commit is contained in:
@@ -11,11 +11,14 @@
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include "tlsf.h"
|
||||
#include "tlsf_block_functions.h"
|
||||
#include "multi_heap.h"
|
||||
#include "multi_heap_internal.h"
|
||||
|
||||
#if !CONFIG_HEAP_TLSF_USE_ROM_IMPL
|
||||
#include "tlsf.h"
|
||||
#include "tlsf_block_functions.h"
|
||||
#endif
|
||||
|
||||
/* Note: Keep platform-specific parts in this header, this source
|
||||
file should depend on libc only */
|
||||
#include "multi_heap_platform.h"
|
||||
@@ -75,7 +78,7 @@ typedef struct multi_heap_info {
|
||||
size_t free_bytes;
|
||||
size_t minimum_free_bytes;
|
||||
size_t pool_size;
|
||||
tlsf_t heap_data;
|
||||
void* heap_data;
|
||||
} heap_t;
|
||||
|
||||
#ifdef CONFIG_HEAP_TLSF_USE_ROM_IMPL
|
||||
|
Reference in New Issue
Block a user