esp-idf/components/heap/include
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
..
esp_heap_alloc_caps.h fix typo for heap cap free size 2017-12-14 10:39:26 +05:30
esp_heap_caps_init.h components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM 2018-08-31 14:28:23 +00:00
esp_heap_caps.h Make error codes looks like literals in the code of them (easy for searching). Minor fixes, typos 2018-04-09 13:54:18 +10:00
esp_heap_task_info.h heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
esp_heap_trace.h heap docs: Fix some bad links & errors in the heap docs 2018-08-10 15:54:58 +10:00
multi_heap.h heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode 2017-10-18 15:57:52 +08:00