Skip to content

Commit 679f4b3

Browse files
committed
Tweak heap sizes for different targets
1 parent c3dc0b1 commit 679f4b3

File tree

1 file changed

+10
-0
lines changed
  • ports/espressif/supervisor

1 file changed

+10
-0
lines changed

ports/espressif/supervisor/port.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,17 @@
8181
#include "esp32/spiram.h"
8282
#endif
8383

84+
// Heap sizes for when there is no external RAM for CircuitPython to use
85+
// exclusively.
86+
#ifdef CONFIG_IDF_TARGET_ESP32S2
8487
#define HEAP_SIZE (48 * 1024)
88+
#endif
89+
#ifdef CONFIG_IDF_TARGET_ESP32S3
90+
#define HEAP_SIZE (176 * 1024)
91+
#endif
92+
#ifdef CONFIG_IDF_TARGET_ESP32C3
93+
#define HEAP_SIZE (88 * 1024)
94+
#endif
8595

8696
uint32_t *heap;
8797
uint32_t heap_size;

0 commit comments

Comments
 (0)