// See the License for the specific language governing permissions and
// limitations under the License.
+#include "bt_target.h"
#include <string.h>
#include "esp_err.h"
#include "esp_a2dp_api.h"
#include "btc_manage.h"
#include "btc_av.h"
+#if BTC_AV_INCLUDED
+
esp_err_t esp_a2d_register_callback(esp_a2d_cb_t callback)
{
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
stat = btc_transfer_context(&msg, NULL, 0, NULL);
return (stat == BT_STATUS_SUCCESS) ? ESP_OK : ESP_FAIL;
}
+
+#endif /* #if BTC_AV_INCLUDED */
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "bt_target.h"
#include <string.h>
#include "esp_err.h"
#include "esp_avrc_api.h"
#include "btc_manage.h"
#include "btc_avrc.h"
+#if BTC_AV_INCLUDED
+
esp_err_t esp_avrc_ct_register_callback(esp_avrc_ct_cb_t callback)
{
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
bt_status_t stat = btc_transfer_context(&msg, &arg, sizeof(btc_avrc_args_t), NULL);
return (stat == BT_STATUS_SUCCESS) ? ESP_OK : ESP_FAIL;
}
+
+#endif /* #if BTC_AV_INCLUDED */
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "bt_target.h"
#include <string.h>
#include "esp_bt_main.h"
#include "esp_gap_bt_api.h"
#include "btc_manage.h"
#include "btc_gap_bt.h"
+#if BTC_GAP_BT_INCLUDED
+
esp_err_t esp_bt_gap_set_scan_mode(esp_bt_scan_mode_t mode)
{
btc_msg_t msg;
return (btc_transfer_context(&msg, &arg, sizeof(btc_gap_bt_args_t), NULL) == BT_STATUS_SUCCESS ? ESP_OK : ESP_FAIL);
}
+
+#endif /* #if BTC_GAP_BT_INCLUDED */
*
******************************************************************************/
+#include "bt_target.h"
#include <string.h>
#include "bta_ar_api.h"
#include "bta_ar_int.h"
+#if BTA_AR_INCLUDED
/* AV control block */
#if BTA_DYNAMIC_MEMORY == FALSE
}
}
+
+#endif /* #if BTA_AR_INCLUDED */
#include "bta_api.h"
#include "bta_av_int.h"
+#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
+
#ifndef BTA_AV_RC_PASS_RSP_CODE
#define BTA_AV_RC_PASS_RSP_CODE BTA_AV_RSP_NOT_IMPL
#endif
#endif
UINT16 *p_bta_av_rc_id = (UINT16 *) bta_av_rc_id;
+
+#endif /* if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE) */
*
******************************************************************************/
+#include "bt_target.h"
#include "bta_api.h"
#include "bta_sys.h"
#include "bta_av_int.h"
#include <string.h>
+#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
/*******************************************************************************
**
** Function bta_av_ci_src_data_ready
}
}
+#endif /* #if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE) */
*
******************************************************************************/
+#include "bt_target.h"
#include "a2d_api.h"
#include "a2d_sbc.h"
#include "bta_av_sbc.h"
#include "utl.h"
#include "bt_utils.h"
+#if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE)
+
typedef int (tBTA_AV_SBC_ACT)(void *p_src, void *p_dst,
UINT32 src_samples, UINT32 dst_samples,
UINT32 *p_ret);
A2D_BldSbcMplHdr(p, FALSE, FALSE, FALSE, (UINT8) fr_per_pkt);
}
+#endif /* #if defined(BTA_AV_INCLUDED) && (BTA_AV_INCLUDED == TRUE) */
******************************************************************************/
#include <stdlib.h>
-
+#include "bt_target.h"
#include "bta_api.h"
#include "bta_sys.h"
#include "bta_sdp_api.h"
#include "bta_sdp_int.h"
+#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
+
/*****************************************************************************
** Constants and types
*****************************************************************************/
return (ret);
}
+
+#endif /* #if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE) */
#include "bt_defs.h"
#include <stdlib.h>
#include <string.h>
-
+#include "bt_target.h"
#include "allocator.h"
#include "bt_types.h"
#include "gki.h"
#include "btm_int.h"
#include "sdp_api.h"
+#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
/*****************************************************************************
** Constants
*****************************************************************************/
bta_sdp_cb.p_dm_cback(BTA_SDP_REMOVE_RECORD_USER_EVT, NULL, p_data->record.user_data);
}
}
+
+#endif /* #if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE) */
*
******************************************************************************/
+#include "bt_target.h"
#include "bta_api.h"
#include "bta_sys.h"
#include "bta_sdp_api.h"
// #include "port_api.h"
#include "sdp_api.h"
+#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
/*****************************************************************************
** Constants
*****************************************************************************/
}
+#endif /* #if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE) */
* This file contains compile-time configurable constants for SDP Search
******************************************************************************/
+#include "bt_target.h"
#include "gki.h"
#include "bta_api.h"
#include "bta_sdp_api.h"
+#if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE)
+
#ifndef BTA_SDP_DB_SIZE
#define BTA_SDP_DB_SIZE 1500
#endif
};
tBTA_SDP_CFG *p_bta_sdp_cfg = (tBTA_SDP_CFG *) &bta_sdp_cfg;
+
+#endif /* #if defined(BTA_SDP_INCLUDED) && (BTA_SDP_INCLUDED == TRUE) */
+// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "bt_target.h"
#include <stdlib.h>
#include <string.h>
#include "btc_common.h"
/******************************************************************************
** Externs
******************************************************************************/
+#if BTC_AV_INCLUDED
extern bt_status_t btc_av_execute_service(BOOLEAN b_enable);
extern bt_status_t btc_av_sink_execute_service(BOOLEAN b_enable);
-
+#endif
/******************************************************************************
** Functions
******************************************************************************/
LOG_DEBUG("%s service_id: %d\n", __FUNCTION__, service_id);
/* Check the service_ID and invoke the profile's BT state changed API */
switch (service_id) {
+#if BTC_AV_INCLUDED
case BTA_A2DP_SOURCE_SERVICE_ID:
btc_av_execute_service(b_enable);
break;
case BTA_A2DP_SINK_SERVICE_ID:
btc_av_sink_execute_service(b_enable);
break;
+#endif
default:
LOG_ERROR("%s: Unknown service being enabled\n", __FUNCTION__);
return BT_STATUS_FAIL;
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "bt_target.h"
#include <string.h>
#include "esp_bt_main.h"
#include "bt_trace.h"
#include "bt_defs.h"
-
#include "btc_profile_queue.h"
#include "gki.h"
#include "list.h"
#include "allocator.h"
+#if BTC_PRF_QUEUE_INCLUDED
/*******************************************************************************
** Local type definitions
*******************************************************************************/
list_free(connect_queue);
connect_queue = NULL;
}
+
+#endif /* if BTC_PRF_QUEUE_INCLUDED */
* Description: Generic BTC state machine API
*
*****************************************************************************/
-
+#include "bt_target.h"
#include "bt_defs.h"
#include "allocator.h"
#include "btc_common.h"
#include "btc_sm.h"
#include "gki.h"
+#if BTC_SM_INCLUDED
/*****************************************************************************
** Constants & Macros
******************************************************************************/
return status;
}
+
+#endif /* #if BTC_SM_INCLUDED */
* BTC.
*
******************************************************************************/
-
#include "string.h"
+#include "bt_target.h"
#include "a2d_api.h"
#include "a2d_sbc.h"
#include "bta_sys.h"
#include "btc_av_co.h"
#include "btc_util.h"
+#if BTC_AV_INCLUDED
+
/*****************************************************************************
** Constants
*****************************************************************************/
bta_av_co_audio_src_data_path,
bta_av_co_audio_delay
};
+
+#endif /* #if BTC_AV_INCLUDED */
* Description: AV implementation
*
*****************************************************************************/
+#include "bt_target.h"
#include <string.h>
#include "bt_trace.h"
#include "bt_defs.h"
#include "btc_common.h"
#include "btc_manage.h"
+#if BTC_AV_INCLUDED
+
/*****************************************************************************
** Constants & Macros
******************************************************************************/
btc_sm_dispatch(btc_av_cb.sm_handle, msg->act, (void *)(msg->arg));
btc_av_event_free_data(msg->act, msg->arg);
}
+
+#endif /* #if BTC_AV_INCLUDED */
**
******************************************************************************/
+#include "bt_target.h"
#include "bt_trace.h"
#include <string.h>
#include <stdio.h>
#include <stdint.h>
-
-#include "bt_target.h"
#include "fixed_queue.h"
#include "gki.h"
#include "bta_api.h"
#include "oi_status.h"
// #endif
+#if BTC_AV_INCLUDED
+
// #if (BTA_AV_SINK_INCLUDED == TRUE)
OI_CODEC_SBC_DECODER_CONTEXT context;
OI_UINT32 contextData[CODEC_DATA_WORDS(2, SBC_CODEC_FAST_FILTER_BUFFERS)];
APPL_TRACE_DEBUG("\tBit pool Min:%d Max:%d\n", sbc_cie.min_bitpool, sbc_cie.max_bitpool);
}
+
+#endif /* #if BTC_AV_INCLUDED */
* Description: Bluetooth AVRC implementation
*
*****************************************************************************/
+#include "bt_target.h"
#include <string.h>
#include "bta_api.h"
#include "bta_av_api.h"
#include "avrc_defs.h"
#include "gki.h"
-
#include "btc_common.h"
#include "btc_util.h"
#include "btc_av.h"
#include "btc_avrc.h"
#include "btc_manage.h"
#include "esp_avrc_api.h"
+#if BTC_AV_INCLUDED
/*****************************************************************************
** Constants & Macros
LOG_WARN("%s : unhandled event: %d\n", __FUNCTION__, msg->act);
}
}
+
+#endif /* #if BTC_AV_INCLUDED */
#include "bta_api.h"
#include "bt_trace.h"
#include <string.h>
+#include "bt_target.h"
+#if BTC_GAP_BT_INCLUDED
void btc_gap_bt_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src)
{
switch (msg->act) {
}
btc_gap_bt_arg_deep_free(msg);
}
+
+#endif /* #if BTC_GAP_BT_INCLUDED */
+++ /dev/null
-// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#include "esp_sdp_api.h"
-
-
-esp_err_t esp_bt_sdp_enable(bt_sdp_cb_t *cback)
-{
- tBTA_SDP_STATUS status = BTA_SdpEnable((tBTA_SDP_DM_CBACK *)cback);
-
- return (status == BTA_SDP_SUCCESS) ? ESP_OK : ESP_FAIL;
-}
-
-esp_err_t esp_bt_sdp_search(esp_bd_addr_t bd_addr, esp_bt_uuid_t *uuid)
-{
- tBTA_SDP_STATUS status = BTA_SdpSearch(bd_addr, (tSDP_UUID *)uuid);
- return (status == BTA_SDP_SUCCESS) ? ESP_OK : ESP_FAIL;
-}
-
-esp_err_t esp_bt_sdp_create_record_by_user(void *user_data)
-{
- tBTA_SDP_STATUS status = BTA_SdpCreateRecordByUser(user_data);
- return (status == BTA_SDP_SUCCESS) ? ESP_OK : ESP_FAIL;
-}
-
-esp_err_t esp_bt_sdp_remove_record_by_user(void *user_data)
-{
- tBTA_SDP_STATUS status = BTA_SdpRemoveRecordByUser(user_data);
- return (status == BTA_SDP_SUCCESS) ? ESP_OK : ESP_FAIL;
-}
-
-
-/**********************************************************************************************/
-/**********************************************************************************************/
-/* API into SDP for local service database updates */
-/* these APIs are indended to be called in callback function in the context of stack task,
- * to handle BT_SDP_CREATE_RECORD_USER_EVT and BT_SDP_REMOVE_RECORD_USER_EVT
- */
-uint32_t esp_bt_sdp_create_record(void)
-{
- return SDP_CreateRecord();
-}
-
-bool esp_bt_sdp_delete_record(uint32_t handle)
-{
- return SDP_DeleteRecord(handle);
-}
-
-int32_t esp_bt_sdp_read_record(uint32_t handle, uint8_t *data, int32_t *data_len)
-{
- return SDP_ReadRecord(handle, data, data_len);
-}
-
-bool esp_bt_sdp_add_attribute (uint32_t handle, uint16_t attr_id,
- uint8_t attr_type, uint32_t attr_len,
- uint8_t *p_val)
-{
- return SDP_AddAttribute(handle, attr_id, attr_type, attr_len, p_val);
-}
-
-bool esp_bt_sdp_add_sequence (uint32_t handle, uint16_t attr_id,
- uint16_t num_elem, uint8_t type[],
- uint8_t len[], uint8_t *p_val[])
-{
- return SDP_AddSequence(handle, attr_id, num_elem, type, len, p_val);
-}
-
-bool esp_bt_sdp_add_uuid_sequence (uint32_t handle, uint16_t attr_id,
- uint16_t num_uuids, uint16_t *p_uuids)
-{
- return SDP_AddUuidSequence(handle, attr_id, num_uuids, p_uuids);
-}
-
-
-bool esp_bt_sdp_add_protocol_list (uint32_t handle, uint16_t num_elem,
- sdp_proto_elem_t *p_elem_list)
-{
- return SDP_AddProtocolList(handle, num_elem, (tSDP_PROTOCOL_ELEM *)p_elem_list);
-}
-
-bool esp_bt_sdp_add_addition_protocol_lists(uint32_t handle, uint16_t num_elem,
- sdp_proto_list_elem_t *p_proto_list)
-{
- return SDP_AddAdditionProtoLists(handle, num_elem, (tSDP_PROTO_LIST_ELEM *)p_proto_list);
-}
-
-bool esp_bt_sdp_add_profile_dscp_list (uint32_t handle,
- uint16_t profile_uuid,
- uint16_t version)
-{
- return SDP_AddProfileDescriptorList(handle, profile_uuid, version);
-}
-
-bool esp_bt_sdp_add_lang_base_attr_id_list(uint32_t handle,
- uint16_t lang, uint16_t char_enc,
- uint16_t base_id)
-{
- return SDP_AddLanguageBaseAttrIDList(handle, lang, char_enc, base_id);
-}
-
-bool esp_bt_sdp_add_service_class_id_list(uint32_t handle,
- uint16_t num_services,
- uint16_t *p_service_uuids)
-{
- return SDP_AddServiceClassIdList(handle, num_services, p_service_uuids);
-}
-
-bool esp_bt_sdp_delete_attribute(uint32_t handle, uint16_t attr_id)
-{
- return SDP_DeleteAttribute(handle, attr_id);
-}
-
-/**********************************************************************************************/
-/**********************************************************************************************/
+++ /dev/null
-// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#ifndef __ESP_SDP_API_H__
-#define __ESP_SDP_API_H__
-
-#include <stdint.h>
-#include "esp_err.h"
-#include "esp_bt_common.h"
-#include "bta_sdp_api.h"
-#include "bt_sdp.h"
-
-#define BT_SDP_STAT_SUCCESS BTA_SDP_SUCCESS
-#define BT_SDP_STAT_FAILURE BTA_SDP_FAILURE
-#define BT_SDP_STAT_BUSY BTA_SDP_BUSY
-
-#define BT_SDP_ENABLE_EVT BTA_SDP_ENABLE_EVT
-#define BT_SDP_SEARCH_EVT BTA_SDP_SEARCH_EVT
-#define BT_SDP_SEARCH_COMP_EVT BTA_SDP_SEARCH_COMP_EVT
-#define BT_SDP_CREATE_RECORD_USER_EVT BTA_SDP_CREATE_RECORD_USER_EVT
-#define BT_SDP_REMOVE_RECORD_USER_EVT BTA_SDP_REMOVE_RECORD_USER_EVT
-#define BT_SDP_MAX_EVT BTA_SDP_MAX_EVT
-
-#define BT_SDP_MAX_RECORDS BTA_SDP_MAX_RECORDS
-
-typedef tBTA_SDP_STATUS bt_sdp_status_t;
-
-typedef tBTA_SDP_EVT bt_sdp_evt_t;
-
-typedef bluetooth_sdp_record bt_sdp_record_t;
-
-/* tBTA_SEARCH_COMP, bta_sdp_api.h */
-typedef struct {
- bt_sdp_status_t status;
- esp_bd_addr_t remote_addr;
- esp_bt_uuid_t uuid;
- int record_count;
- bt_sdp_record_t records[BT_SDP_MAX_RECORDS];
-} bt_sdp_search_comp_t;
-
-/* tBTA_SDP, bta_sdp_api.h */
-typedef union {
- bt_sdp_status_t status;
- bt_sdp_search_comp_t sdp_search_comp;
-} bt_sdp_t;
-
-typedef void (bt_sdp_cb_t)(bt_sdp_evt_t event, bt_sdp_t *p_data, void *user_data);
-
-esp_err_t esp_bt_sdp_enable(bt_sdp_cb_t *cback);
-
-esp_err_t esp_bt_sdp_search(esp_bd_addr_t bd_addr, esp_bt_uuid_t *uuid);
-
-esp_err_t esp_bt_sdp_create_record_by_user(void *user_data);
-
-esp_err_t esp_bt_sdp_remove_record_by_user(void *user_data);
-
-
-/**********************************************************************************************/
-/**********************************************************************************************/
-/* API into SDP for local service database updates
- * these APIs are indended to be called in callback function in the context of stack task,
- * to handle BT_SDP_CREATE_RECORD_USER_EVT and BT_SDP_REMOVE_RECORD_USER_EVT
- */
-
-/* This structure is used to add protocol lists and find protocol elements */
-#define ESP_BT_SDP_MAX_PROTOCOL_PARAMS SDP_MAX_PROTOCOL_PARAMS // bt_target.h
-typedef struct {
- uint16_t protocol_uuid;
- uint16_t num_params;
- uint16_t params[ESP_BT_SDP_MAX_PROTOCOL_PARAMS];
-} sdp_proto_elem_t; // tSDP_PROTOCOL_ELEM, sdp_api.h
-
-#define ESP_BT_SDP_MAX_LIST_ELEMS SDP_MAX_LIST_ELEMS // sdp_api.h
-typedef struct {
- uint16_t num_elems;
- sdp_proto_elem_t list_elem[ESP_BT_SDP_MAX_LIST_ELEMS];
-} sdp_proto_list_elem_t; // tSDP_PROTO_LIST_ELEM, sdp_api.h
-
-
-uint32_t esp_bt_sdp_create_record(void);
-
-bool esp_bt_sdp_delete_record(uint32_t handle);
-
-int32_t esp_bt_sdp_read_record(uint32_t handle, uint8_t *data, int32_t *data_len);
-
-bool esp_bt_sdp_add_attribute (uint32_t handle, uint16_t attr_id,
- uint8_t attr_type, uint32_t attr_len,
- uint8_t *p_val);
-
-bool esp_bt_sdp_add_sequence (uint32_t handle, uint16_t attr_id,
- uint16_t num_elem, uint8_t type[],
- uint8_t len[], uint8_t *p_val[]);
-
-bool esp_bt_sdp_add_uuid_sequence (uint32_t handle, uint16_t attr_id,
- uint16_t num_uuids, uint16_t *p_uuids);
-
-
-bool esp_bt_sdp_add_protocol_list (uint32_t handle, uint16_t num_elem,
- sdp_proto_elem_t *p_elem_list);
-
-bool esp_bt_sdp_add_addition_protocol_lists(uint32_t handle, uint16_t num_elem,
- sdp_proto_list_elem_t *p_proto_list);
-
-bool esp_bt_sdp_add_profile_dscp_list (uint32_t handle,
- uint16_t profile_uuid,
- uint16_t version);
-
-bool esp_bt_sdp_add_lang_base_attr_id_list(uint32_t handle,
- uint16_t lang, uint16_t char_enc,
- uint16_t base_id);
-
-bool esp_bt_sdp_add_service_class_id_list(uint32_t handle,
- uint16_t num_services,
- uint16_t *p_service_uuids);
-
-bool esp_bt_sdp_delete_attribute(uint32_t handle, uint16_t attr_id);
-
-#endif /* __ESP_SDP_API_H__ */
#if CONFIG_CLASSIC_BT_ENABLED
+#define BTA_SDP_INCLUDED TRUE
#define BTA_PAN_INCLUDED FALSE
#define BTA_HH_INCLUDED FALSE
#define BTA_AR_INCLUDED TRUE
#define RFCOMM_INCLUDED FALSE
#define PAN_INCLUDED FALSE
#define HID_HOST_INCLUDED FALSE
+#define AVDT_INCLUDED TRUE
#define A2D_INCLUDED TRUE
+#define AVCT_INCLUDED TRUE
#define AVRC_INCLUDED TRUE
#define MCA_INCLUDED FALSE
+#define BTC_SM_INCLUDED TRUE
+#define BTC_PRF_QUEUE_INCLUDED TRUE
+#define BTC_GAP_BT_INCLUDED TRUE
+#define BTC_AV_INCLUDED TRUE
#else /* #if CONFIG_CLASSIC_BT_ENABLED */
+#define BTA_SDP_INCLUDED FALSE
#define BTA_PAN_INCLUDED FALSE
#define BTA_HH_INCLUDED FALSE
#define BTA_AR_INCLUDED FALSE
#define RFCOMM_INCLUDED FALSE
#define PAN_INCLUDED FALSE
#define HID_HOST_INCLUDED FALSE
+#define AVDT_INCLUDED FALSE
#define A2D_INCLUDED FALSE
+#define AVCT_INCLUDED FALSE
#define AVRC_INCLUDED FALSE
#define MCA_INCLUDED FALSE
+#define BTC_SM_INCLUDED FALSE
+#define BTC_PRF_QUEUE_INCLUDED FALSE
+#define BTC_GAP_BT_INCLUDED FALSE
+#define BTC_AV_INCLUDED FALSE
#endif /* #if CONFIG_CLASSIC_BT_ENABLED */
#include "a2d_int.h"
#include "avdt_api.h"
+#if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE)
+
/*****************************************************************************
** Global data
*****************************************************************************/
#endif
}
+#endif /* #if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE) */
#include "a2d_sbc.h"
#include "bt_utils.h"
+#if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE)
+
/*************************************************************************************************
* SBC descramble code
* Purpose: to tie the SBC code with BTE/mobile stack code,
}
}
+#endif /* #if (defined(A2D_INCLUDED) && A2D_INCLUDED == TRUE) */
#include "avct_api.h"
#include "avct_int.h"
+#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
+
/* Control block for AVCT */
#if AVCT_DYNAMIC_MEMORY == FALSE
tAVCT_CB avct_cb;
return result;
}
+#endif /* #if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE) */
#include "avct_api.h"
#include "avct_int.h"
+#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
+
/*******************************************************************************
**
** Function avct_ccb_alloc
}
return p_ccb;
}
+
+#endif /* #if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE) */
#include "l2c_api.h"
#include "l2cdefs.h"
+#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
+
/* Configuration flags. */
#define AVCT_L2C_CFG_IND_DONE (1<<0)
#define AVCT_L2C_CFG_CFM_DONE (1<<1)
}
}
+#endif /* #if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE) */
#include "avct_int.h"
#include "gki.h"
+#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
+
/*****************************************************************************
** state machine constants and types
*****************************************************************************/
}
-
+#endif /* #if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE) */
#include "gki.h"
#include "btm_api.h"
+#if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE)
+
/* packet header length lookup table */
const UINT8 avct_lcb_pkt_type_len[] = {
AVCT_HDR_LEN_SINGLE,
}
}
}
+
+#endif /* #if (defined(AVCT_INCLUDED) && AVCT_INCLUDED == TRUE) */
#include "l2c_api.h"
#include "l2cdefs.h"
-
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
/*******************************************************************************
**
** Function avdt_ad_type_to_tcid
}
}
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "btm_api.h"
#include "btu.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
/* Control block for AVDT */
#if AVDT_DYNAMIC_MEMORY == FALSE
tAVDT_CB avdt_cb;
#endif
-
/*******************************************************************************
**
** Function avdt_process_timeout
return (avdt_cb.trace_level);
}
+
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "gki.h"
#include "btu.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
+
/*****************************************************************************
** state machine constants and types
*****************************************************************************/
return p_ccb;
}
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "btu.h"
#include "btm_api.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
+
/*******************************************************************************
**
** Function avdt_ccb_clear_ccb
(*p_ccb->p_conn_cback)(0, p_ccb->peer_addr, AVDT_CONNECT_IND_EVT, &avdt_ctrl);
}
}
+
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "btm_api.h"
#include "btm_int.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
/* callback function declarations */
void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
GKI_freebuf(p_buf);
}
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "gki.h"
#include "btu.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
/*****************************************************************************
** constants
*****************************************************************************/
avdt_ccb_event(p_ccb, AVDT_CCB_RCVRSP_EVT, NULL);
}
}
+
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "gki.h"
#include "btu.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
+
/*****************************************************************************
** state machine constants and types
*****************************************************************************/
}
}
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
#include "gki.h"
#include "btu.h"
+#if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE)
+
/* This table is used to lookup the callback event that matches a particular
** state machine API request event. Note that state machine API request
** events are at the beginning of the event list starting at zero, thus
}
#endif
+#endif /* #if (defined(AVDT_INCLUDED) && AVDT_INCLUDED == TRUE) */
// #include <assert.h>
#include "bt_trace.h"
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_int.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
/*****************************************************************************
** Global data
*****************************************************************************/
return AVRC_NO_RESOURCES;
}
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
*
******************************************************************************/
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_defs.h"
#include "avrc_int.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
/*****************************************************************************
** Global data
*****************************************************************************/
}
#endif /* (AVRC_METADATA_INCLUDED == TRUE) */
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
*
******************************************************************************/
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_defs.h"
#include "avrc_int.h"
#include "bt_utils.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
/*****************************************************************************
** Global data
*****************************************************************************/
#endif /* (AVRC_METADATA_INCLUDED == TRUE)*/
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
// #include <assert.h>
#include "bt_target.h"
#include <string.h>
-
#include "gki.h"
#include "avrc_api.h"
#include "avrc_int.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
/******************************************************************************
**
** Function avrc_vendor_msg
return AVCT_NO_RESOURCES;
}
-
-
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
*
******************************************************************************/
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_defs.h"
#include "avrc_int.h"
#include "bt_utils.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
/*****************************************************************************
** Global data
*****************************************************************************/
#endif /* (AVRC_METADATA_INCLUDED == TRUE) */
+
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
*
******************************************************************************/
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_defs.h"
#include "avrc_int.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
/*****************************************************************************
** Global data
*****************************************************************************/
#endif /* (AVRC_METADATA_INCLUDED == TRUE) */
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
*
******************************************************************************/
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_int.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
+
#ifndef SDP_AVRCP_1_4
#define SDP_AVRCP_1_4 FALSE
#endif
#endif
}
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
*
******************************************************************************/
#include <string.h>
-
+#include "bt_target.h"
#include "gki.h"
#include "avrc_api.h"
#include "avrc_int.h"
+#if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE)
#if (AVRC_METADATA_INCLUDED == TRUE)
#endif /* (AVRC_METADATA_INCLUDED == TRUE) */
+#endif /* #if (defined(AVRC_INCLUDED) && AVRC_INCLUDED == TRUE) */
bluedroid/btc/profile/std/gatt/include \
bluedroid/btc/profile/std/gap/include \
bluedroid/btc/profile/std/a2dp/include \
- bluedroid/btc/profile/std/sdp/include \
bluedroid/btc/profile/std/include \
bluedroid/btc/include \
bluedroid/btif/include \