1 /******************************************************************************
2  *
3  *  Copyright (C) 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 "common/bt_target.h"
27 
28 #if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
29 #include "bta/bta_hh_api.h"
30 
31 
32 /* max number of device types supported by BTA */
33 #define BTA_HH_MAX_DEVT_SPT         9
34 
35 /* size of database for service discovery */
36 #ifndef BTA_HH_DISC_BUF_SIZE
37 #define BTA_HH_DISC_BUF_SIZE        BT_DEFAULT_BUFFER_SIZE
38 #endif
39 
40 
41 
42 /* The type of devices supported by BTA HH and corresponding application ID */
43 tBTA_HH_SPT_TOD p_devt_list[BTA_HH_MAX_DEVT_SPT] = {
44     {BTA_HH_DEVT_MIC, BTA_HH_APP_ID_MI},
45     {BTA_HH_DEVT_KBD, BTA_HH_APP_ID_KB},
46     {BTA_HH_DEVT_KBD | BTA_HH_DEVT_MIC, BTA_HH_APP_ID_KB},
47     {BTA_HH_DEVT_RMC, BTA_HH_APP_ID_RMC},
48     {BTA_HH_DEVT_RMC | BTA_HH_DEVT_KBD, BTA_HH_APP_ID_RMC},
49     {BTA_HH_DEVT_MIC | BTA_HH_DEVT_DGT, BTA_HH_APP_ID_MI},
50     {BTA_HH_DEVT_JOS, BTA_HH_APP_ID_JOY},
51     {BTA_HH_DEVT_GPD, BTA_HH_APP_ID_GPAD},
52     {BTA_HH_DEVT_UNKNOWN, BTA_HH_APP_ID_3DSG}
53 };
54 
55 
56 const tBTA_HH_CFG bta_hh_cfg = {
57     BTA_HH_MAX_DEVT_SPT,            /* number of supported type of devices */
58     p_devt_list,                    /* ToD & AppID list */
59     BTA_HH_DISC_BUF_SIZE            /* HH SDP discovery database size */
60 };
61 
62 
63 tBTA_HH_CFG *p_bta_hh_cfg = (tBTA_HH_CFG *) &bta_hh_cfg;
64 #endif  ///defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)
65