Tweak heap sizes for different targets

This commit is contained in:
Scott Shawcroft 2022-01-18 15:23:19 -08:00
parent c3dc0b1c45
commit 679f4b30ba
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 10 additions and 0 deletions

View File

@ -81,7 +81,17 @@
#include "esp32/spiram.h"
#endif
// Heap sizes for when there is no external RAM for CircuitPython to use
// exclusively.
#ifdef CONFIG_IDF_TARGET_ESP32S2
#define HEAP_SIZE (48 * 1024)
#endif
#ifdef CONFIG_IDF_TARGET_ESP32S3
#define HEAP_SIZE (176 * 1024)
#endif
#ifdef CONFIG_IDF_TARGET_ESP32C3
#define HEAP_SIZE (88 * 1024)
#endif
uint32_t *heap;
uint32_t heap_size;