component/bt : close sdp to free dram

1. free 15K
This commit is contained in:
Tian Hao 2016-11-25 15:54:18 +08:00
parent 19273c7b2d
commit ac87ddfb05
8 changed files with 12 additions and 4 deletions

View file

@ -29,6 +29,7 @@
#include "bt_types.h"
#include "btm_api.h"
// #include "uipc_msg.h"
#include "sdp_api.h"
#if BLE_INCLUDED == TRUE
#include "btm_ble_api.h"

View file

@ -978,7 +978,7 @@
******************************************************************************/
#ifndef SDP_INCLUDED
#define SDP_INCLUDED TRUE
#define SDP_INCLUDED FALSE //TRUE
#endif
/* This is set to enable SDP server functionality. */

View file

@ -2615,13 +2615,15 @@ BOOLEAN btm_ble_update_inq_result(tINQ_DB_ENT *p_i, UINT8 addr_type, UINT8 evt_t
BTM_BLE_AD_TYPE_16SRV_CMPL, &len)) != NULL) {
UINT8 i;
for (i = 0; i + 2 <= len; i = i + 2) {
/* if this BLE device support HID over LE, set HID Major in class of device */
#if BTA_HH_LE_INCLUDED == TRUE
/* if this BLE device support HID over LE, set HID Major in class of device */
if ((p_uuid16[i] | (p_uuid16[i + 1] << 8)) == UUID_SERVCLASS_LE_HID) {
p_cur->dev_class[0] = 0;
p_cur->dev_class[1] = BTM_COD_MAJOR_PERIPHERAL;
p_cur->dev_class[2] = 0;
break;
}
#endif /* BTA_HH_LE_INCLUDED */
}
}
}

View file

@ -28,6 +28,7 @@
#include "gatt_int.h"
#include "btm_int.h"
#include "hcimsgs.h"
#include "sdpdefs.h"
#define GAP_CHAR_ICON_SIZE 2
#define GAP_CHAR_DEV_NAME_SIZE 248

View file

@ -33,7 +33,8 @@
#include "gatt_int.h"
#include "l2c_api.h"
#include "btm_int.h"
#include "sdpdefs.h"
#include "sdp_api.h"
/*******************************************************************************
**

View file

@ -28,6 +28,7 @@
#include "gatt_api.h"
#include "gatt_int.h"
#include "sdpdefs.h"
#if BLE_INCLUDED == TRUE

View file

@ -31,7 +31,8 @@
#endif
#ifndef SDP_DYNAMIC_MEMORY
#define SDP_DYNAMIC_MEMORY FALSE
//#define SDP_DYNAMIC_MEMORY FALSE
#define SDP_DYNAMIC_MEMORY TRUE
#endif
#ifndef L2C_DYNAMIC_MEMORY

View file

@ -19,6 +19,7 @@
#ifndef GAP_API_H
#define GAP_API_H
#include "sdpdefs.h"
#include "profiles_api.h"
#include "btm_api.h"
#include "l2c_api.h"