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 <memory.h> 21 #include <stdio.h> 22 #include <string.h> 23 #include "data_types.h" 24 25 #ifndef NFC_CONTORLLER_ID 26 #define NFC_CONTORLLER_ID (1) 27 #endif 28 29 #define BTE_APPL_MAX_USERIAL_DEV_NAME (256) 30 31 #ifdef BT_TRACE_VERBOSE 32 #undef BT_TRACE_VERBOSE 33 #endif 34 #define BT_TRACE_VERBOSE TRUE 35 36 #define TRACE_TASK_INCLUDED TRUE 37 38 #define GKI_BUF1_MAX 0 39 // 2 is in use 40 #define GKI_BUF3_MAX 30 41 #define GKI_BUF4_SIZE 2400 42 #define GKI_BUF4_MAX 30 43 #define GKI_BUF5_MAX 0 44 #define GKI_BUF6_MAX 0 45 #define GKI_BUF7_MAX 0 46 #define GKI_BUF8_MAX 0 47 48 #define GKI_BUF2_SIZE 660 49 #define GKI_BUF2_MAX 50 50 51 #define GKI_BUF0_SIZE 268 52 #define GKI_BUF0_MAX 40 53 54 #define NCI_BUF_POOL_ID GKI_POOL_ID_0 55 #define GKI_NUM_FIXED_BUF_POOLS 4 56 57 #ifdef __cplusplus 58 extern "C" { 59 #endif 60 61 extern uint8_t* scru_dump_hex(uint8_t* p, char* p_title, uint32_t len, 62 uint32_t trace_layer, uint32_t trace_type); 63 extern void ScrLog(uint32_t trace_set_mask, const char* fmt_str, ...); 64 extern void DispNci(uint8_t* p, uint16_t len, bool is_recv); 65 66 extern void downloadFirmwarePatchFile(uint32_t brcm_hw_id); 67 68 void ProtoDispAdapterDisplayNciPacket(uint8_t* nciPacket, uint16_t nciPacketLen, 69 bool is_recv); 70 #define DISP_NCI ProtoDispAdapterDisplayNciPacket 71 #define LOGMSG_TAG_NAME "BrcmNfcNfa" 72 73 #ifndef _TIMEB 74 #define _TIMEB 75 struct _timeb { 76 long time; 77 short millitm; 78 short timezone; 79 short dstflag; 80 }; 81 void _ftime(struct _timeb*); 82 83 #endif 84 85 #ifdef __cplusplus 86 }; 87 #endif 88 #endif 89