File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace jpge {
3030 return b;
3131 }
3232 // check if SPIRAM is enabled and allocate on SPIRAM if allocatable
33- #if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
33+ #if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
3434 return heap_caps_malloc (nSize, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
3535#else
3636 return NULL ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ typedef struct {
5454static void * _malloc (size_t size )
5555{
5656 // check if SPIRAM is enabled and allocate on SPIRAM if allocatable
57- #if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC ))
57+ #if (( CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT ) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC ))
5858 return heap_caps_malloc (size , MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT );
5959#endif
6060 // try allocating in internal memory
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ static void *_malloc(size_t size)
3737 }
3838
3939 // check if SPIRAM is enabled and is allocatable
40- #if (CONFIG_SPIRAM_SUPPORT && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
40+ #if ((CONFIG_SPIRAM || CONFIG_SPIRAM_SUPPORT) && (CONFIG_SPIRAM_USE_CAPS_ALLOC || CONFIG_SPIRAM_USE_MALLOC))
4141 return heap_caps_malloc (size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
4242#endif
4343 return NULL ;
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ CONFIG_FREERTOS_HZ=1000
99CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
1010CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
1111
12+ CONFIG_SPIRAM=y
1213CONFIG_SPIRAM_SUPPORT=y
1314CONFIG_ESP32_SPIRAM_SUPPORT=y
1415CONFIG_ESP32S2_SPIRAM_SUPPORT=y
1516CONFIG_ESP32S3_SPIRAM_SUPPORT=y
1617CONFIG_SPIRAM_SPEED_80M=y
17-
You can’t perform that action at this time.
0 commit comments