summaryrefslogtreecommitdiff
path: root/py/map.c
diff options
context:
space:
mode:
authorMichael O'Cleirigh <michael.ocleirigh@gmail.com>2022-01-28 00:35:53 -0500
committerDamien George <damien@micropython.org>2022-02-02 15:24:02 +1100
commiteae2e3516ca4067ca8cfeb51ac8a6505cb6324b7 (patch)
tree39f606decbbe2ad599b558bb863a120b60ea43d2 /py/map.c
parent1f04a9a1fcd4172f7c721e05a4515c9c8bb0e8c9 (diff)
esp32/main: Automatically size SPIRAM heap when allocated using malloc.
This change allows the same heap allocation rules to be used when using malloc regardless if the board has SPRAM or normal RAM. Integrating with the esp32-camera for example requires that ESP32 SPRAM be allocatable using the esp-idf capabilities aware allocation functions. In the case of esp32-camera it's for the framebuffer. Detect when CONFIG_SPIRAM_USE_MALLOC is in use and use the standard automatic configuration of leaving 1/2 of the SPRAM available to other FreeRTOS tasks.
Diffstat (limited to 'py/map.c')
0 files changed, 0 insertions, 0 deletions