return ESP_ERR_INVALID_STATE;
}
+#ifdef CONFIG_BLUEDROID_MEM_DEBUG
+ osi_mem_dbg_init();
+#endif
+
future_p = btc_main_get_future_p(BTC_MAIN_INIT_FUTURE);
*future_p = future_new();
if (*future_p == NULL) {
******************************************************************************/
int bte_main_boot_entry(bluedroid_init_done_cb_t cb)
{
-#ifdef CONFIG_BLUEDROID_MEM_DEBUG
- osi_mem_dbg_init();
-#endif
-
if (gki_init()) {
LOG_ERROR("%s: Init GKI Module Failure.\n", __func__);
return -1;
char *osi_strdup(const char *str)
{
size_t size = strlen(str) + 1; // + 1 for the null terminator
- char *new_string = (char *)calloc(1, size);
+ char *new_string = (char *)osi_calloc(size);
if (!new_string) {
return NULL;
#include <stddef.h>
//#include <stdlib.h>
+#include "sdkconfig.h"
typedef void *(*alloc_fn)(size_t size);
typedef void (*free_fn)(void *ptr);