heap: Fix compilation error when CONFIG_SPIRAM is set on esp32s3 target

When CONFIG_SPIRAM is set, the TLSF_MAX_POOL_SIZE is set to SOC_EXTRAM_DATA_SIZE
which caused the TLSF_MAX_POOL_SIZE to be bigger than 16MB.

This commit fixes the issue by adding an extra else if case to cover this configuration.
This commit is contained in:
Guillaume Souchere 2022-08-03 07:29:55 +02:00
parent 594e58e65a
commit d98bfe1b42

View File

@ -36,6 +36,8 @@ extern "C" {
#define FL_INDEX_MAX_PLATFORM 23 //Each pool can have up 8MB
#elif (TLSF_MAX_POOL_SIZE <= (16 * 1024 * 1024))
#define FL_INDEX_MAX_PLATFORM 24 //Each pool can have up 16MB
#elif (TLSF_MAX_POOL_SIZE <= (32 * 1024 * 1024))
#define FL_INDEX_MAX_PLATFORM 25 //Each pool can have up 32MB
#else
#error "Higher TLSF pool sizes should be added for this new config"
#endif