feat(heap): Update component to latest TLSF

The new TLSF architecture has changed. tlsf.h public API
header is now moved into an include folder. tlsf_common.h
is removed from the repo.

This commit updates the heap component and respective
esp_rom patches to take into account this new
architecture.
This commit is contained in:
Guillaume Souchere
2024-08-29 10:07:44 +02:00
parent d3631b3afa
commit ccd8486462
9 changed files with 45 additions and 115 deletions

View File

@@ -176,7 +176,7 @@ TEST_CASE("test get allocated size", "[heap]")
const size_t aligned_size = (alloc_sizes[i] + 3) & ~3;
const size_t real_size = heap_caps_get_allocated_size(ptr_array[i]);
printf("initial size: %d, requested size : %d, allocated size: %d\n", alloc_sizes[i], aligned_size, real_size);
TEST_ASSERT_EQUAL(aligned_size, real_size);
TEST_ASSERT(aligned_size <= real_size);
heap_caps_free(ptr_array[i]);
}