• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"  // Must be first to define build configuration
27 
28 #include "bta/include/bta_hh_api.h"
29 
30 /* max number of device types supported by BTA */
31 #define BTA_HH_MAX_DEVT_SPT 9
32 
33 /* size of database for service discovery */
34 #ifndef BTA_HH_DISC_BUF_SIZE
35 #define BTA_HH_DISC_BUF_SIZE BT_DEFAULT_BUFFER_SIZE
36 #endif
37 
38 /* The type of devices supported by BTA HH and corresponding application ID */
39 tBTA_HH_SPT_TOD p_devt_list[BTA_HH_MAX_DEVT_SPT] = {
40     {BTA_HH_DEVT_MIC, BTA_HH_APP_ID_MI},
41     {BTA_HH_DEVT_KBD, BTA_HH_APP_ID_KB},
42     {BTA_HH_DEVT_KBD | BTA_HH_DEVT_MIC, BTA_HH_APP_ID_KB},
43     {BTA_HH_DEVT_RMC, BTA_HH_APP_ID_RMC},
44     {BTA_HH_DEVT_RMC | BTA_HH_DEVT_KBD, BTA_HH_APP_ID_RMC},
45     {BTA_HH_DEVT_MIC | BTA_HH_DEVT_DGT, BTA_HH_APP_ID_MI},
46     {BTA_HH_DEVT_JOS, BTA_HH_APP_ID_JOY},
47     {BTA_HH_DEVT_GPD, BTA_HH_APP_ID_GPAD},
48     {BTA_HH_DEVT_UNKNOWN, BTA_HH_APP_ID_3DSG}};
49 
50 const tBTA_HH_CFG bta_hh_cfg = {
51     BTA_HH_MAX_DEVT_SPT, /* number of supported type of devices */
52     p_devt_list,         /* ToD & AppID list */
53     BTA_HH_DISC_BUF_SIZE /* HH SDP discovery database size */
54 };
55 
56 const tBTA_HH_CFG* p_bta_hh_cfg = &bta_hh_cfg;
57