esp32/main: Use both 3.3 and 4.0 config vars to enable SPIRAM.

pull/5122/head
Jim Mussared 2019-09-18 10:44:16 +10:00 zatwierdzone przez Damien George
rodzic 73c94bbbd4
commit 62d78e231c
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,8 @@ void mp_task(void *pvParameter) {
#endif
uart_init();
#if CONFIG_ESP32_SPIRAM_SUPPORT
// TODO: CONFIG_SPIRAM_SUPPORT is for 3.3 compatibility, remove after move to 4.0.
#if CONFIG_ESP32_SPIRAM_SUPPORT || CONFIG_SPIRAM_SUPPORT
// Try to use the entire external SPIRAM directly for the heap
size_t mp_task_heap_size;
void *mp_task_heap = (void*)0x3f800000;