]> granicus.if.org Git - esp-idf/commitdiff
component/bt : close sdp to free dram
authorTian Hao <tianhao@espressif.com>
Fri, 25 Nov 2016 07:54:18 +0000 (15:54 +0800)
committerTian Hao <tianhao@espressif.com>
Fri, 25 Nov 2016 07:54:18 +0000 (15:54 +0800)
1. free 15K

components/bt/bluedroid/bta/include/bta_api.h
components/bt/bluedroid/include/bt_target.h
components/bt/bluedroid/stack/btm/btm_ble_gap.c
components/bt/bluedroid/stack/gap/gap_ble.c
components/bt/bluedroid/stack/gatt/gatt_api.c
components/bt/bluedroid/stack/gatt/gatt_attr.c
components/bt/bluedroid/stack/include/dyn_mem.h
components/bt/bluedroid/stack/include/gap_api.h

index f9c6c154f5447abbede1cf2e22df688719277f21..338fb968910befed79f156d459d64249e8791639 100644 (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"
index 5f894a5d61a37ab31093f52ae05148270e4c0e5f..e9a1625e010c87d2a9e27abede9e5df6fca9d540 100644 (file)
 ******************************************************************************/
 
 #ifndef SDP_INCLUDED
-#define SDP_INCLUDED                TRUE
+#define SDP_INCLUDED                FALSE //TRUE
 #endif
 
 /* This is set to enable SDP server functionality. */
index 0e484d952672713cbf7968c3ec0afb3dd779fd90..906300a8a89e0bda7ebe8d64ad3a629c8e384551 100644 (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 */
                 }
             }
         }
index 70c4a22f69f39e0ac18f6e5988d910029c62baa2..b560fad6519a782c51394df350b842c705cdde4c 100644 (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
index 1a61d60b1420f44d04a5b7d49ba04337413c4f78..c464508da9172eeff202332e9c4d6dd1ee0a7125 100644 (file)
@@ -33,7 +33,8 @@
 #include "gatt_int.h"
 #include "l2c_api.h"
 #include "btm_int.h"
-
+#include "sdpdefs.h"
+#include "sdp_api.h"
 
 /*******************************************************************************
 **
index b7a87192b433a93fe3d09e60d0e6992105c5d6f7..b0aa3f71d1c3cb9294c6a11c4c5291c633c55d15 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "gatt_api.h"
 #include "gatt_int.h"
+#include "sdpdefs.h"
 
 #if BLE_INCLUDED == TRUE
 
index 2693ae63621899c459e8d4a37579f837a129417f..9a95fb95654d1f3f762958c00acb38145bd550ae 100755 (executable)
@@ -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
index 2dc9836a88c8bc885978faadb52bb98cbc4ed641..1f22db008dacd263501a837c334fdb2fbf4c88ef 100644 (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"