extern const tBTA_AG_AT_CMD *bta_ag_at_tbl[BTA_AG_NUM_IDX];
/* control block declaration */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_AG_CB bta_ag_cb;
-#else
-extern tBTA_AG_CB *bta_ag_cb_ptr;
-#define bta_ag_cb (*bta_ag_cb_ptr)
-#endif
/* config struct */
extern tBTA_AG_CFG *p_bta_ag_cfg;
*****************************************************************************/
/* AG control block */
-#if BTA_DYNAMIC_MEMORY == FALSE
tBTA_AG_CB bta_ag_cb;
-#endif
/*******************************************************************************
**
/* AV control block */
-#if BTA_DYNAMIC_MEMORY == FALSE
tBTA_AR_CB bta_ar_cb;
-#endif
/*******************************************************************************
**
*****************************************************************************/
/* control block declaration */
-#if BTA_DYNAMIC_MEMORY == FALSE
extern tBTA_AR_CB bta_ar_cb;
-#else
-extern tBTA_AR_CB *bta_ar_cb_ptr;
-#define bta_ar_cb (*bta_ar_cb_ptr)
-#endif
#endif /* BTA_AR_INT_H */
*****************************************************************************/
/* control block declaration */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_AV_CB bta_av_cb;
-#else
-extern tBTA_AV_CB *bta_av_cb_ptr;
-#define bta_av_cb (*bta_av_cb_ptr)
-#endif
/* config struct */
extern tBTA_AV_CFG *p_bta_av_cfg;
*****************************************************************************/
/* AV control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_AV_CB bta_av_cb;
-#endif
#if (BTA_AV_DEBUG == TRUE)
static char *bta_av_st_code(uint8_t state);
extern tBTA_DM_EIR_CONF *p_bta_dm_eir_cfg;
/* DM control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_DM_CB bta_dm_cb;
-#else
-extern tBTA_DM_CB *bta_dm_cb_ptr;
-#define bta_dm_cb (*bta_dm_cb_ptr)
-#endif
/* DM search control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_DM_SEARCH_CB bta_dm_search_cb;
-#else
-extern tBTA_DM_SEARCH_CB *bta_dm_search_cb_ptr;
-#define bta_dm_search_cb (*bta_dm_search_cb_ptr)
-#endif
/* DI control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_DM_DI_CB bta_dm_di_cb;
-#else
-extern tBTA_DM_DI_CB *bta_dm_di_cb_ptr;
-#define bta_dm_di_cb (*bta_dm_di_cb_ptr)
-#endif
extern bool bta_dm_sm_execute(BT_HDR *p_msg);
extern void bta_dm_sm_disable( void );
** Constants and types
*****************************************************************************/
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_DM_CB bta_dm_cb;
tBTA_DM_SEARCH_CB bta_dm_search_cb;
tBTA_DM_DI_CB bta_dm_di_cb;
-#endif
#define BTA_DM_NUM_ACTIONS (BTA_DM_MAX_EVT & 0x00ff)
*****************************************************************************/
/* GATTC control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_GATTC_CB bta_gattc_cb;
-#else
-extern tBTA_GATTC_CB *bta_gattc_cb_ptr;
-#define bta_gattc_cb (*bta_gattc_cb_ptr)
-#endif
/*****************************************************************************
** Function prototypes
*****************************************************************************/
/* GATTC control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_GATTC_CB bta_gattc_cb;
-#endif
#if (BTA_GATT_DEBUG == TRUE)
static char *gattc_evt_code(tBTA_GATTC_INT_EVT evt_code);
*****************************************************************************/
/* GATTC control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_GATTS_CB bta_gatts_cb;
-#else
-extern tBTA_GATTS_CB *bta_gatts_cb_ptr;
- #define bta_gatts_cb (*bta_gatts_cb_ptr)
-#endif
/*****************************************************************************
** Function prototypes
};
/* GATTS control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_GATTS_CB bta_gatts_cb;
-#endif
/*******************************************************************************
**
}
tBTA_HH_CB;
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_HH_CB bta_hh_cb;
-#else
-extern tBTA_HH_CB *bta_hh_cb_ptr;
-#define bta_hh_cb (*bta_hh_cb_ptr)
-#endif
/* from bta_hh_cfg.c */
extern tBTA_HH_CFG *p_bta_hh_cfg;
/*****************************************************************************
** Global data
*****************************************************************************/
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_HH_CB bta_hh_cb;
-#endif
+
/*****************************************************************************
** Static functions
*****************************************************************************/
*****************************************************************************/
/* HL control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_HL_CB bta_hl_cb;
-#else
-extern tBTA_HL_CB *bta_hl_cb_ptr;
- #define bta_hl_cb (*bta_hl_cb_ptr)
-#endif
#define BTA_HL_GET_CB_PTR() &(bta_hl_cb)
#define BTA_HL_GET_APP_CB_PTR(app_idx) &(bta_hl_cb.acb[(app_idx)])
*****************************************************************************/
/* HL control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_HL_CB bta_hl_cb;
-#endif
-
/*******************************************************************************
**
};
/* JV control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_JV_CB bta_jv_cb;
-#else
-extern tBTA_JV_CB *bta_jv_cb_ptr;
-#define bta_jv_cb (*bta_jv_cb_ptr)
-#endif
/* config struct */
extern tBTA_JV_CFG *p_bta_jv_cfg;
** Constants and types
*****************************************************************************/
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_JV_CB bta_jv_cb;
-#endif
/* state machine action enumeration list */
#define BTA_JV_NUM_ACTIONS (BTA_JV_MAX_INT_EVT & 0x00ff)
};
/* MCE control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_MCE_CB bta_mce_cb;
-#else
-extern tBTA_MCE_CB *bta_mce_cb_ptr;
-#define bta_mce_cb (*bta_mce_cb_ptr)
-#endif
/* config struct */
extern tBTA_MCE_CFG *p_bta_mce_cfg;
** Constants and types
*****************************************************************************/
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_MCE_CB bta_mce_cb;
-#endif
/* state machine action enumeration list */
#define BTA_MCE_NUM_ACTIONS (BTA_MCE_MAX_INT_EVT & 0x00ff)
*****************************************************************************/
/* PAN control block */
-
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_PAN_CB bta_pan_cb;
-#else
-extern tBTA_PAN_CB *bta_pan_cb_ptr;
-#define bta_pan_cb (*bta_pan_cb_ptr)
-#endif
/*****************************************************************************
** Function prototypes
*****************************************************************************/
/* PAN control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_PAN_CB bta_pan_cb;
-#endif
/*******************************************************************************
**
** Constants and types
*****************************************************************************/
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_SDP_CB bta_sdp_cb;
-#endif
/* state machine action enumeration list */
#define BTA_SDP_NUM_ACTIONS (BTA_SDP_MAX_INT_EVT & 0x00ff)
/* SDP control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_SDP_CB bta_sdp_cb;
-#else
-extern tBTA_SDP_CB *bta_sdp_cb_ptr;
-#define bta_sdp_cb (*bta_sdp_cb_ptr)
-#endif
/* config struct */
extern tBTA_SDP_CFG *p_bta_sdp_cfg;
*****************************************************************************/
/* system manager control block */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
extern tBTA_SYS_CB bta_sys_cb;
-#else
-extern tBTA_SYS_CB *bta_sys_cb_ptr;
-#define bta_sys_cb (*bta_sys_cb_ptr)
-#endif
/* functions used for BTA SYS HW state machine */
void bta_sys_hw_btm_cback( tBTM_DEV_STATUS status );
#endif
/* system manager control block definition */
-#if (BTA_DYNAMIC_MEMORY == FALSE)
tBTA_SYS_CB bta_sys_cb;
-#endif
fixed_queue_t *btu_bta_alarm_queue;
extern thread_t *bt_workqueue_thread;
#endif
#endif
-/***** BTA Modules ******/
-#if BTA_INCLUDED == TRUE && BTA_DYNAMIC_MEMORY == TRUE
-#include "bta_api.h"
-#include "bta_sys.h"
-
-#include "bta_ag_int.h"
-
-#if BTA_HS_INCLUDED == TRUE
-#include "bta_hs_int.h"
-#endif
-
-#include "bta_dm_int.h"
-
-#if BTA_AR_INCLUDED==TRUE
-#include "bta_ar_int.h"
-#endif
-#if BTA_AV_INCLUDED==TRUE
-#include "bta_av_int.h"
-#endif
-
-#if BTA_HH_INCLUDED==TRUE
-#include "bta_hh_int.h"
-#endif
-
-#if BTA_JV_INCLUDED==TRUE
-#include "bta_jv_int.h"
-tBTA_JV_CB *bta_jv_cb_ptr = NULL;
-#endif
-
-#if BTA_HL_INCLUDED == TRUE
-#include "bta_hl_int.h"
-#endif
-
-#if BTA_GATT_INCLUDED == TRUE
-#include "bta_gattc_int.h"
-#include "bta_gatts_int.h"
-#endif
-
-#if BTA_PAN_INCLUDED==TRUE
-#include "bta_pan_int.h"
-#endif
-
-#include "bta_sys_int.h"
-
-/* control block for patch ram downloading */
-#include "bta_prm_int.h"
-
-#endif /* BTA_INCLUDED */
-
/*****************************************************************************
** F U N C T I O N S *
******************************************************************************/
MCA_Init();
#endif
-/****************
-** BTA Modules **
-*****************/
-#if (BTA_INCLUDED == TRUE && BTA_DYNAMIC_MEMORY == TRUE)
- memset((void*)bta_sys_cb_ptr, 0, sizeof(tBTA_SYS_CB));
- memset((void*)bta_dm_cb_ptr, 0, sizeof(tBTA_DM_CB));
- memset((void*)bta_dm_search_cb_ptr, 0, sizeof(tBTA_DM_SEARCH_CB));
- memset((void*)bta_dm_di_cb_ptr, 0, sizeof(tBTA_DM_DI_CB));
- memset((void*)bta_prm_cb_ptr, 0, sizeof(tBTA_PRM_CB));
- memset((void*)bta_ag_cb_ptr, 0, sizeof(tBTA_AG_CB));
-#if BTA_HS_INCLUDED == TRUE
- memset((void*)bta_hs_cb_ptr, 0, sizeof(tBTA_HS_CB));
-#endif
-#if BTA_AR_INCLUDED==TRUE
- memset((void *)bta_ar_cb_ptr, 0, sizeof(tBTA_AR_CB));
-#endif
-#if BTA_AV_INCLUDED==TRUE
- memset((void *)bta_av_cb_ptr, 0, sizeof(tBTA_AV_CB));
-#endif
-#if BTA_HH_INCLUDED==TRUE
- memset((void *)bta_hh_cb_ptr, 0, sizeof(tBTA_HH_CB));
-#endif
-#if BTA_HL_INCLUDED==TRUE
- memset((void *)bta_hl_cb_ptr, 0, sizeof(tBTA_HL_CB));
-#endif
-#if BTA_GATT_INCLUDED==TRUE
- memset((void *)bta_gattc_cb_ptr, 0, sizeof(tBTA_GATTC_CB));
- memset((void *)bta_gatts_cb_ptr, 0, sizeof(tBTA_GATTS_CB));
-#endif
-#if BTA_PAN_INCLUDED==TRUE
- memset((void *)bta_pan_cb_ptr, 0, sizeof(tBTA_PAN_CB));
-#endif
-
-#endif /* BTA_INCLUDED == TRUE */
-
}
#define LLCP_DYNAMIC_MEMORY FALSE
#endif
-/****************************************************************************
-** Define memory usage for BTA (if not defined in bdroid_buildcfg.h)
-** The default for each component is to use static memory allocations.
-*/
-#ifndef BTA_DYNAMIC_MEMORY
-#define BTA_DYNAMIC_MEMORY FALSE
-#endif
-
#endif /* #ifdef DYN_MEM_H */