feat(heap): Remove old heap and modify old heap API

This commit is contained in:
Dong Heng
2018-08-31 15:12:43 +08:00
parent 260da4a6f3
commit a4369522b9
11 changed files with 53 additions and 1061 deletions

View File

@ -339,7 +339,7 @@ void esp_chip_info(esp_chip_info_t* out_info)
*/
uint32_t esp_get_free_heap_size(void)
{
return xPortGetFreeHeapSize();
return heap_caps_get_free_size(MALLOC_CAP_32BIT);
}
/**
@ -347,5 +347,5 @@ uint32_t esp_get_free_heap_size(void)
*/
uint32_t esp_get_minimum_free_heap_size(void)
{
return xPortGetMinimumEverFreeHeapSize();
return heap_caps_get_minimum_free_size(MALLOC_CAP_32BIT);
}