/******************************************************************************
** Static variables
******************************************************************************/
-#if BTC_DYNAMIC_MENDRY == FALSE
+#if BTC_DYNAMIC_MEMORY == FALSE
btc_dm_cb_t btc_dm_cb = {0};
#else
btc_dm_cb_t *btc_dm_cb_ptr;
#include "esp_bt_defs.h"
#include "esp_gatt_defs.h"
-#if BTC_DYNAMIC_MENDRY == FALSE
+#if BTC_DYNAMIC_MEMORY == FALSE
void *btc_profile_cb_tab[BTC_PID_NUM] = {};
#else
void **btc_profile_cb_tab;
}
-#if BTC_DYNAMIC_MENDRY
+#if BTC_DYNAMIC_MEMORY
static void btc_deinit_mem(void) {
if (btc_dm_cb_ptr) {
btc_deinit_mem();
return BT_STATUS_NOMEM;
}
-#endif ///BTC_DYNAMIC_MENDRY
+#endif ///BTC_DYNAMIC_MEMORY
int btc_init(void)
{
return BT_STATUS_NOMEM;
}
-#if BTC_DYNAMIC_MENDRY
+#if BTC_DYNAMIC_MEMORY
if (btc_init_mem() != BT_STATUS_SUCCESS){
return BT_STATUS_NOMEM;
}
void btc_deinit(void)
{
-#if BTC_DYNAMIC_MENDRY
+#if BTC_DYNAMIC_MEMORY
btc_deinit_mem();
#endif
#endif
} btc_dm_cb_t;
-#if BTC_DYNAMIC_MENDRY == FALSE
+#if BTC_DYNAMIC_MEMORY == FALSE
extern btc_dm_cb_t btc_dm_cb;
#else
extern btc_dm_cb_t *btc_dm_cb_ptr;
#include "btc/btc_task.h"
#include "esp_bt_defs.h"
-#if BTC_DYNAMIC_MENDRY == FALSE
+#if BTC_DYNAMIC_MEMORY == FALSE
extern void *btc_profile_cb_tab[BTC_PID_NUM];
#else
extern void **btc_profile_cb_tab;
#include "esp_bt.h"
#if (BLE_INCLUDED == TRUE)
-#if BTC_DYNAMIC_MENDRY == FALSE
+#if BTC_DYNAMIC_MEMORY == FALSE
static tBTA_BLE_ADV_DATA gl_bta_adv_data;
static tBTA_BLE_ADV_DATA gl_bta_scan_rsp_data;
#else
osi_mutex_unlock(&adv_list_lock);
}
#endif
-#endif ///BLE_INCLUDED == TRUE
\ No newline at end of file
+#endif ///BLE_INCLUDED == TRUE
#include "esp_bt_defs.h"
#include "esp_gap_ble_api.h"
-#if BTC_DYNAMIC_MENDRY == TRUE
+#if BTC_DYNAMIC_MEMORY == TRUE
#include "bta/bta_api.h"
extern tBTA_BLE_ADV_DATA *gl_bta_adv_data_ptr;
extern tBTA_BLE_ADV_DATA *gl_bta_scan_rsp_data_ptr;
#define GATT_DYNAMIC_MEMORY TRUE
#define SMP_DYNAMIC_MEMORY TRUE
#define BTA_DYNAMIC_MEMORY TRUE
-#define BTC_DYNAMIC_MENDRY TRUE
+#define BTC_DYNAMIC_MEMORY TRUE
#define SDP_DYNAMIC_MEMORY TRUE
#define GAP_DYNAMIC_MEMORY TRUE
#define RFC_DYNAMIC_MEMORY TRUE
#define GATT_DYNAMIC_MEMORY FALSE
#define SMP_DYNAMIC_MEMORY FALSE
#define BTA_DYNAMIC_MEMORY FALSE
-#define BTC_DYNAMIC_MENDRY FALSE
+#define BTC_DYNAMIC_MEMORY FALSE
#define SDP_DYNAMIC_MEMORY FALSE
#define GAP_DYNAMIC_MEMORY FALSE
#define RFC_DYNAMIC_MEMORY FALSE
#define BTA_DYNAMIC_MEMORY FALSE
#endif
-#ifndef BTC_DYNAMIC_MENDRY
-#define BTC_DYNAMIC_MENDRY FALSE
+#ifndef BTC_DYNAMIC_MEMORY
+#define BTC_DYNAMIC_MEMORY FALSE
#endif
#endif /* #ifdef DYN_MEM_H */