buildcfg.h revision e9df6ba5a8fcccf306a80b1670b423be8fe7746a
1/******************************************************************************
2 *
3 *  Copyright (C) 1999-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#ifndef __BUILDCFG_H
19#define __BUILDCFG_H
20#include <string.h>
21#include <memory.h>
22#include <stdio.h>
23#include "data_types.h"
24
25#include "btdisp_lock.h"
26#ifndef NFC_CONTORLLER_ID
27#define NFC_CONTORLLER_ID       (1)
28#endif
29
30#ifdef ANDROID_USE_LOGCAT
31#undef ANDROID_USE_LOGCAT
32#endif
33
34#define BTE_APPL_MAX_USERIAL_DEV_NAME           (256)
35
36#define ANDROID_USE_LOGCAT      TRUE
37
38#ifdef BT_TRACE_PROTOCOL
39#undef BT_TRACE_PROTOCOL
40#endif
41
42#ifdef BT_TRACE_VERBOSE
43#undef BT_TRACE_VERBOSE
44#endif
45#define BT_TRACE_VERBOSE      TRUE
46
47#define TRACE_TASK_INCLUDED   TRUE
48
49#define GKI_BUF1_MAX            0
50// 2 is in use
51#define GKI_BUF3_MAX            30
52#define GKI_BUF4_SIZE           2400
53#define GKI_BUF4_MAX            30
54#define GKI_BUF5_MAX            0
55#define GKI_BUF6_MAX            0
56#define GKI_BUF7_MAX            0
57#define GKI_BUF8_MAX            0
58
59#define GKI_BUF2_SIZE           660
60#define GKI_BUF2_MAX            50
61
62#define GKI_BUF0_SIZE           268
63#define GKI_BUF0_MAX            40
64
65#define NCI_BUF_POOL_ID         GKI_POOL_ID_0
66#define GKI_NUM_FIXED_BUF_POOLS 4
67
68#ifdef	__cplusplus
69extern "C" {
70#endif
71// +++from bte.h...
72enum
73{
74                            /* BTE                  BBY                     */
75                            /* J3   J4              SW3-3   SW3-2   SW3-1   */
76                            /* -------------------------------------------- */
77    BTE_MODE_SERIAL_APP,    /* OUT  OUT             OFF     OFF     OFF     Sample serial port application      */
78    BTE_MODE_APPL,    	    /* IN   OUT             OFF     OFF     ON      Target used with Tester through RPC */
79    BTE_MODE_RESERVED,      /* OUT  IN              OFF     ON      OFF     Reserved                            */
80    BTE_MODE_SAMPLE_APPS,   /* IN   IN              OFF     ON      ON      Sample applications (ICP/HSP)       */
81    BTE_MODE_DONGLE,        /* not yet supported    ON      OFF     OFF     Dongle mode                         */
82    BTE_MODE_APPL_PROTOCOL_TRACE, /* this is a fake mode do allow protocol tracing in application without rpc */
83    BTE_MODE_INVALID
84};
85/* Protocol trace mask */
86extern UINT32 bte_proto_trace_mask;/* = 0xFFFFFFFF;*/
87extern volatile UINT8 bte_target_mode;
88// ---from bte.h...
89
90
91extern UINT8 *scru_dump_hex (UINT8 *p, char *p_title, UINT32 len, UINT32 trace_layer, UINT32 trace_type);
92extern void ScrLog(UINT32 trace_set_mask, const char *fmt_str, ...);
93extern void DispNci (UINT8 *p, UINT16 len, BOOLEAN is_recv);
94
95extern void downloadFirmwarePatchFile (UINT32 brcm_hw_id);
96
97#define DISP_NCI	(DispNciDump)
98extern void DispNciDump(UINT8 *p, UINT16 len, BOOLEAN is_recv);
99
100#ifndef _TIMEB
101#define _TIMEB
102struct _timeb
103{
104    long    time;
105    short   millitm;
106    short   timezone;
107    short   dstflag;
108};
109void    _ftime (struct _timeb*);
110
111#endif
112
113#ifdef	__cplusplus
114};
115#endif
116#endif
117