1 /****************************************************************************** 2 * 3 * Copyright 2005-2012 Broadcom Corporation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 /****************************************************************************** 20 * 21 * This file contains compile-time configurable constants for the BTA Hid 22 * Host. 23 * 24 ******************************************************************************/ 25 26 #include "bt_target.h" 27 #include "bta_hh_api.h" 28 29 /* max number of device types supported by BTA */ 30 #define BTA_HH_MAX_DEVT_SPT 9 31 32 /* size of database for service discovery */ 33 #ifndef BTA_HH_DISC_BUF_SIZE 34 #define BTA_HH_DISC_BUF_SIZE BT_DEFAULT_BUFFER_SIZE 35 #endif 36 37 /* The type of devices supported by BTA HH and corresponding application ID */ 38 tBTA_HH_SPT_TOD p_devt_list[BTA_HH_MAX_DEVT_SPT] = { 39 {BTA_HH_DEVT_MIC, BTA_HH_APP_ID_MI}, 40 {BTA_HH_DEVT_KBD, BTA_HH_APP_ID_KB}, 41 {BTA_HH_DEVT_KBD | BTA_HH_DEVT_MIC, BTA_HH_APP_ID_KB}, 42 {BTA_HH_DEVT_RMC, BTA_HH_APP_ID_RMC}, 43 {BTA_HH_DEVT_RMC | BTA_HH_DEVT_KBD, BTA_HH_APP_ID_RMC}, 44 {BTA_HH_DEVT_MIC | BTA_HH_DEVT_DGT, BTA_HH_APP_ID_MI}, 45 {BTA_HH_DEVT_JOS, BTA_HH_APP_ID_JOY}, 46 {BTA_HH_DEVT_GPD, BTA_HH_APP_ID_GPAD}, 47 {BTA_HH_DEVT_UNKNOWN, BTA_HH_APP_ID_3DSG}}; 48 49 const tBTA_HH_CFG bta_hh_cfg = { 50 BTA_HH_MAX_DEVT_SPT, /* number of supported type of devices */ 51 p_devt_list, /* ToD & AppID list */ 52 BTA_HH_DISC_BUF_SIZE /* HH SDP discovery database size */ 53 }; 54 55 const tBTA_HH_CFG* p_bta_hh_cfg = &bta_hh_cfg; 56