OVMS3-idf/components/heap
Hrishikesh Dhayagude 4abe47437f components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM
Problem:
The new API esp_bt_mem_release() that was added freed BTDM data to heap from esp_bt_controller_mem_release().
Now with the BT memory optimization commit ee787085f9,
the BTDM data is optimized and reduced to only 32 bytes which is not sufficient amount to be added to heap.
So, using the API leads to assert saying that the region is too small.

Solution:
Modify heap_caps_add_region_with_caps to return ESP_ERR_INVALID_SIZE in case the range is too small to create a new heap.
Do not assert if return value is ESP_ERR_INVALID_SIZE

This also fixes using API esp_bt_controller_mem_release() with ESP_BT_MODE_BTDM

Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-31 14:28:23 +00:00
..
include components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM 2018-08-31 14:28:23 +00:00
test heap: test: don’t warn about oversized mallocs 2018-08-29 14:40:28 +08:00
test_multi_heap_host test_multi_heap_host: Remove race conditions from parallel "make clean test" 2018-05-22 12:09:30 +10:00
component.mk heap tracing: Fix tracing of newlib internal allocations 2018-03-20 12:03:46 +11:00
heap_caps.c heap: heap_caps_malloc(..., MALLOC_CAP_32_BIT) should always align a 32-bit aligned size 2018-07-31 14:29:31 +10:00
heap_caps_init.c components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM 2018-08-31 14:28:23 +00:00
heap_private.h heap: move get_all_caps to IRAM, used in unit test 2018-07-24 09:56:40 +03:00
heap_task_info.c heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
heap_trace.c multi_heap: use portENTER/EXIT_CRITICAL instead of taskENTER/EXIT_CRITICAL 2018-04-19 18:28:55 +05:30
Kconfig heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
multi_heap.c Try to merge tail with next block when splitting 2018-04-03 12:30:52 +10:00
multi_heap_config.h Try to merge tail with next block when splitting 2018-04-03 12:30:52 +10:00
multi_heap_internal.h heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
multi_heap_platform.h heap: fix build failure due to missing header 2018-04-26 11:08:58 +05:30
multi_heap_poisoning.c assert: Fix. Move useful functions from wrapped assert functions 2018-06-22 15:17:55 +05:00