We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6ee20 commit 13be10eCopy full SHA for 13be10e
ports/espressif/supervisor/port.c
@@ -95,7 +95,7 @@
95
#define esp_himem_reserved_area_size() (0)
96
#endif
97
98
-static size_t spiram_size_usable_for_malloc(void) {
+static size_t spiram_size_usable(void) {
99
/* SPIRAM chip may be larger than the size we can map into address space */
100
size_t s = MIN(esp_spiram_get_size(), SOC_EXTRAM_DATA_SIZE);
101
return s - esp_himem_reserved_area_size();
@@ -220,7 +220,7 @@ safe_mode_t port_init(void) {
220
221
#ifdef CONFIG_SPIRAM
222
if (esp_spiram_is_initialized()) {
223
- size_t spiram_size = spiram_size_usable_for_malloc();
+ size_t spiram_size = spiram_size_usable();
224
#ifdef CONFIG_IDF_TARGET_ESP32
225
heap = (uint32_t *)SOC_EXTRAM_DATA_LOW;
226
#else
0 commit comments