mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-25 09:50:47 +00:00
feat(ble): support memory allocation check debug feature on ESP32-C6
This commit is contained in:
@@ -447,6 +447,12 @@ menu "Controller debug features"
|
||||
config BT_LE_PTR_CHECK_ENABLED
|
||||
bool "Enable boundary check for internal memory"
|
||||
default n
|
||||
|
||||
config BT_LE_MEM_CHECK_ENABLED
|
||||
bool "Enable memory allocation check"
|
||||
default n
|
||||
help
|
||||
Used in internal tests only. Enable the memory allocation check.
|
||||
endmenu
|
||||
|
||||
config BT_LE_LL_RESOLV_LIST_SIZE
|
||||
|
@@ -1771,3 +1771,10 @@ ble_capture_info_user_handler(uint8_t type, uint32_t reason, uint32_t param1, ui
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if CONFIG_BT_LE_MEM_CHECK_ENABLED
|
||||
void ble_memory_count_limit_set(uint16_t count_limit)
|
||||
{
|
||||
bt_osi_mem_count_limit_set(count_limit);
|
||||
}
|
||||
#endif // CONFIG_BT_LE_MEM_CHECK_ENABLED
|
||||
|
Reference in New Issue
Block a user