From dec0b9220099a0acf833508a002a4840cdb6075a Mon Sep 17 00:00:00 2001 From: Justin Hammond Date: Fri, 23 Dec 2022 00:12:57 +0800 Subject: [PATCH] if using TLSF, reconfigure freertos to use heap_3 instead of heap5 --- components/freertos/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/freertos/CMakeLists.txt b/components/freertos/CMakeLists.txt index 686f771f..0813e712 100644 --- a/components/freertos/CMakeLists.txt +++ b/components/freertos/CMakeLists.txt @@ -7,8 +7,11 @@ sdk_library_add_sources(tasks.c) sdk_library_add_sources(timers.c) sdk_library_add_sources(timers.c) sdk_library_add_sources(freertos_port.c) +if(CONFIG_TLSF) +sdk_library_add_sources(portable/MemMang/heap_3.c) +else() sdk_library_add_sources(portable/MemMang/heap_5.c) - +endif() sdk_add_include_directories(include) if(("${CHIP}" STREQUAL "bl808") AND ("${CPU_ID}" STREQUAL "d0"))